Updated the Guild.ts model
This commit is contained in:
parent
a7e0f00e75
commit
84494849f8
@ -3,8 +3,10 @@ import {DataTypes, InferAttributes, InferCreationAttributes, Model} from "sequel
|
||||
|
||||
export interface IGuild extends Model<InferAttributes<IGuild>, InferCreationAttributes<IGuild>> {
|
||||
guildId: number
|
||||
emotes: number
|
||||
language: string
|
||||
coins: number
|
||||
messagesSent: number
|
||||
}
|
||||
|
||||
const GuildSchema = sequelize.define<IGuild>('guilds', {
|
||||
@ -16,8 +18,16 @@ const GuildSchema = sequelize.define<IGuild>('guilds', {
|
||||
language: {
|
||||
type: DataTypes.STRING
|
||||
},
|
||||
emotes: {
|
||||
type: DataTypes.INTEGER,
|
||||
defaultValue: 0
|
||||
},
|
||||
coins: {
|
||||
type: DataTypes.INTEGER
|
||||
},
|
||||
messagesSent: {
|
||||
type: DataTypes.INTEGER,
|
||||
defaultValue: 0
|
||||
}
|
||||
}, {createdAt: false, updatedAt: false});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user