import {sequelize} from "../app"; import {DataTypes, InferAttributes, InferCreationAttributes, Model} from "sequelize"; export interface IGuild extends Model, InferCreationAttributes> { guildId: number language: string coins: number } const GuildSchema = sequelize.define('guilds', { guildId: { type: DataTypes.BIGINT, allowNull: false }, language: { type: DataTypes.STRING }, coins: { type: DataTypes.INTEGER } }, {createdAt: false, updatedAt: false}); export const Guild = GuildSchema;