nice new update
This commit is contained in:
parent
e136522421
commit
666638c956
136 changed files with 4483 additions and 9190 deletions
41
src/database/schemas/KickReaction.ts
Normal file
41
src/database/schemas/KickReaction.ts
Normal file
|
@ -0,0 +1,41 @@
|
|||
import { DataTypes, Sequelize, Model, Optional } from 'sequelize';
|
||||
|
||||
export interface KickReactionAttributes {
|
||||
id: number;
|
||||
guild: string;
|
||||
channel: string;
|
||||
reaction: string;
|
||||
}
|
||||
|
||||
export interface KickReactionCreationAttributes extends Optional<KickReactionAttributes, 'id'> { }
|
||||
|
||||
export interface KickReactionInstance
|
||||
extends Model<KickReactionAttributes, KickReactionCreationAttributes>,
|
||||
KickReactionAttributes { }
|
||||
|
||||
export default function KickRole(sequelize: Sequelize) {
|
||||
const KickReaction = sequelize.define<KickReactionInstance>('KickReaction', {
|
||||
id: {
|
||||
type: DataTypes.INTEGER,
|
||||
autoIncrement: true,
|
||||
primaryKey: true,
|
||||
},
|
||||
guild: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: false,
|
||||
},
|
||||
channel: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: false,
|
||||
},
|
||||
reaction: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: false,
|
||||
},
|
||||
});
|
||||
|
||||
// Sync the model with the database
|
||||
KickReaction.sync({ alter: true });
|
||||
|
||||
return KickReaction;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue