"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const sequelize_1=require("sequelize");class forexSignal extends sequelize_1.Model{static initModel(e){return forexSignal.init({id:{type:sequelize_1.DataTypes.UUID,defaultValue:sequelize_1.DataTypes.UUIDV4,primaryKey:!0,allowNull:!1},title:{type:sequelize_1.DataTypes.STRING(191),allowNull:!1,validate:{notEmpty:{msg:"title: Title cannot be empty"}}},image:{type:sequelize_1.DataTypes.STRING(191),allowNull:!1,validate:{notEmpty:{msg:"image: Image cannot be empty"}}},status:{type:sequelize_1.DataTypes.BOOLEAN,allowNull:!1,defaultValue:!1,validate:{isBoolean:{msg:"status: Status must be a boolean value"}}}},{sequelize:e,modelName:"forexSignal",tableName:"forex_signal",timestamps:!0,paranoid:!0,indexes:[{name:"PRIMARY",unique:!0,using:"BTREE",fields:[{name:"id"}]}]})}static associate(e){forexSignal.hasMany(e.forexAccountSignal,{as:"forexAccountSignals",foreignKey:"forexSignalId",onDelete:"CASCADE",onUpdate:"CASCADE"});forexSignal.belongsToMany(e.forexAccount,{as:"signalAccounts",through:e.forexAccountSignal,foreignKey:"forexSignalId",otherKey:"forexAccountId",onDelete:"CASCADE",onUpdate:"CASCADE"})}}exports.default=forexSignal;