"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const sequelize_1=require("sequelize");class copyTradingLeaderMarket extends sequelize_1.Model{static initModel(e){return copyTradingLeaderMarket.init({id:{type:sequelize_1.DataTypes.UUID,defaultValue:sequelize_1.DataTypes.UUIDV4,primaryKey:!0,allowNull:!1},leaderId:{type:sequelize_1.DataTypes.UUID,allowNull:!1,validate:{notNull:{msg:"leaderId: Leader ID is required"}}},symbol:{type:sequelize_1.DataTypes.STRING(20),allowNull:!1,validate:{notEmpty:{msg:"symbol: Symbol is required"}}},baseCurrency:{type:sequelize_1.DataTypes.STRING(10),allowNull:!1},quoteCurrency:{type:sequelize_1.DataTypes.STRING(10),allowNull:!1},minBase:{type:sequelize_1.DataTypes.DOUBLE,allowNull:!1,defaultValue:0},minQuote:{type:sequelize_1.DataTypes.DOUBLE,allowNull:!1,defaultValue:0},isActive:{type:sequelize_1.DataTypes.BOOLEAN,allowNull:!1,defaultValue:!0},createdAt:{type:sequelize_1.DataTypes.DATE,allowNull:!1,defaultValue:sequelize_1.DataTypes.NOW},updatedAt:{type:sequelize_1.DataTypes.DATE,allowNull:!1,defaultValue:sequelize_1.DataTypes.NOW}},{sequelize:e,modelName:"copyTradingLeaderMarket",tableName:"copy_trading_leader_markets",timestamps:!0,indexes:[{name:"PRIMARY",unique:!0,fields:[{name:"id"}]},{name:"copy_trading_leader_markets_unique",unique:!0,fields:[{name:"leaderId"},{name:"symbol"}]},{name:"copy_trading_leader_markets_leader_idx",fields:[{name:"leaderId"}]},{name:"copy_trading_leader_markets_symbol_idx",fields:[{name:"symbol"}]}]})}static associate(e){copyTradingLeaderMarket.belongsTo(e.copyTradingLeader,{foreignKey:"leaderId",as:"leader",onDelete:"CASCADE",onUpdate:"CASCADE"})}}exports.default=copyTradingLeaderMarket;