import {DataTypes, InferAttributes, InferCreationAttributes, Model} from "sequelize"; import {sequelize} from "../app"; export interface IAchievement extends Model, InferCreationAttributes> { guildId: number categoryId: number achievementId: number } const AchievementSchema = sequelize.define('achievements', { guildId: { type: DataTypes.BIGINT, allowNull: false }, categoryId: { type: DataTypes.INTEGER, allowNull: false }, achievementId: { type: DataTypes.INTEGER, allowNull: false } }, {createdAt: false, updatedAt: false}); export const Achievement = AchievementSchema;