Updated the Channel.ts model

This commit is contained in:
2023-11-11 18:55:44 +01:00
parent 276ea0f971
commit 933eec0f53

View File

@@ -3,7 +3,7 @@ import {DataTypes, InferAttributes, InferCreationAttributes, Model} from "sequel
export interface IChannel extends Model<InferAttributes<IChannel>, InferCreationAttributes<IChannel>> { export interface IChannel extends Model<InferAttributes<IChannel>, InferCreationAttributes<IChannel>> {
guildId: number guildId: number
clientId: number channelId: number
webhookToken: string webhookToken: string
langCode: string langCode: string
emotes: number emotes: number
@@ -17,7 +17,7 @@ const ChannelSchema = sequelize.define<IChannel>('channels', {
type: DataTypes.BIGINT, type: DataTypes.BIGINT,
allowNull: false allowNull: false
}, },
clientId: { channelId: {
type: DataTypes.BIGINT, type: DataTypes.BIGINT,
allowNull: false allowNull: false
}, },