import {sequelize} from "../app"; import {DataTypes, InferAttributes, InferCreationAttributes, Model} from "sequelize"; export interface IChannel extends Model, InferCreationAttributes> { guildId: number channelId: number webhookToken: string langCode: string emotes: number designId: number topicId: number cachedName: string } const ChannelSchema = sequelize.define('channels', { guildId: { type: DataTypes.BIGINT, allowNull: false }, channelId: { type: DataTypes.BIGINT, allowNull: false }, webhookToken: { type: DataTypes.STRING, allowNull: false }, langCode: { type: DataTypes.STRING, allowNull: false }, emotes: { type: DataTypes.BIGINT }, designId: { type: DataTypes.INTEGER }, topicId: { type: DataTypes.INTEGER }, cachedName: { type: DataTypes.STRING } }, {createdAt: false, updatedAt: false}); export const Channel = ChannelSchema;