"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const sequelize_1=require("sequelize");class exchangeCurrency extends sequelize_1.Model{static initModel(e){return exchangeCurrency.init({id:{type:sequelize_1.DataTypes.UUID,defaultValue:sequelize_1.DataTypes.UUIDV4,primaryKey:!0,allowNull:!1},currency:{type:sequelize_1.DataTypes.STRING(191),allowNull:!1,unique:"exchangeCurrencyCurrencyKey",validate:{notEmpty:{msg:"currency: Currency must not be empty"}},comment:"Currency symbol (e.g., BTC, ETH, USDT)"},name:{type:sequelize_1.DataTypes.STRING(191),allowNull:!1,validate:{notEmpty:{msg:"name: Name must not be empty"}},comment:"Full name of the currency (e.g., Bitcoin, Ethereum)"},precision:{type:sequelize_1.DataTypes.DOUBLE,allowNull:!1,validate:{isNumeric:{msg:"precision: Precision must be a number"}},comment:"Number of decimal places for this currency"},price:{type:sequelize_1.DataTypes.DECIMAL(30,15),allowNull:!0,validate:{isDecimal:{msg:"price: Price must be a decimal number"}},comment:"Current price of the currency"},fee:{type:sequelize_1.DataTypes.DOUBLE,allowNull:!0,defaultValue:0,validate:{isNumeric:{msg:"fee: Fee must be a number"}},comment:"Trading fee percentage for this currency"},status:{type:sequelize_1.DataTypes.BOOLEAN,allowNull:!1,defaultValue:!0,validate:{isBoolean:{msg:"status: Status must be a boolean value"}},comment:"Currency availability status (active/inactive)"}},{sequelize:e,modelName:"exchangeCurrency",tableName:"exchange_currency",timestamps:!1,indexes:[{name:"PRIMARY",unique:!0,using:"BTREE",fields:[{name:"id"}]},{name:"exchangeCurrencyCurrencyKey",unique:!0,using:"BTREE",fields:[{name:"currency"}]}]})}static associate(e){}}exports.default=exchangeCurrency;