DiscordJS-Example/models/guilds.js

20 lines
369 B
JavaScript

import { DataTypes, Sequelize } from 'sequelize';
/**
* @typedef {Object} Guild
* @property {string} id A Discord guild ID.
*/
/**
* The definition of the `Guild` table in the database.
* @param {Sequelize} sequelize
*/
export default function (sequelize) {
return sequelize.define('Guilds', {
id: {
type: DataTypes.STRING,
primaryKey: true
}
});
}