DiscordJS-Example/models/guilds.js

20 lines
369 B
JavaScript
Raw Normal View History

2024-03-23 21:47:24 +00:00
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
}
});
}