"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const sequelize_1=require("sequelize");class forexPlanDuration extends sequelize_1.Model{static initModel(e){return forexPlanDuration.init({id:{type:sequelize_1.DataTypes.UUID,defaultValue:sequelize_1.DataTypes.UUIDV4,primaryKey:!0,allowNull:!1},planId:{type:sequelize_1.DataTypes.UUID,allowNull:!1},durationId:{type:sequelize_1.DataTypes.UUID,allowNull:!1}},{sequelize:e,modelName:"forexPlanDuration",tableName:"forex_plan_duration",timestamps:!1,indexes:[{name:"PRIMARY",unique:!0,using:"BTREE",fields:[{name:"id"}]},{name:"idxPlanId",using:"BTREE",fields:[{name:"planId"}]},{name:"idxDurationId",using:"BTREE",fields:[{name:"durationId"}]}]})}static associate(e){forexPlanDuration.belongsTo(e.forexDuration,{as:"duration",foreignKey:"durationId",onDelete:"CASCADE",onUpdate:"CASCADE"});forexPlanDuration.belongsTo(e.forexPlan,{as:"plan",foreignKey:"planId",onDelete:"CASCADE",onUpdate:"CASCADE"})}}exports.default=forexPlanDuration;