DiscordJS-Example/models/message.js

16 lines
310 B
JavaScript
Raw Normal View History

2024-01-28 23:31:40 +00:00
import { DataTypes } from "sequelize";
export default function(sequelize) {
return sequelize.define('Message', {
id: {
type: DataTypes.STRING,
primaryKey: true,
},
roleEmojiPair: {
deferrable: Deferrable.INITIALLY_IMMEDIATE,
model: 'RoleEmojiPair',
key: 'id',
},
});
}