"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const sequelize_1=require("sequelize");class currency extends sequelize_1.Model{static initModel(e){return currency.init({id:{type:sequelize_1.DataTypes.STRING(191),primaryKey:!0,allowNull:!1},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, US Dollar)"},symbol:{type:sequelize_1.DataTypes.STRING(191),allowNull:!1,validate:{notEmpty:{msg:"symbol: Symbol must not be empty"}},comment:"Currency symbol/ticker (e.g., BTC, USD, ETH)"},precision:{type:sequelize_1.DataTypes.DOUBLE,allowNull:!1,validate:{isFloat:{msg:"precision: Precision must be a valid number"},min:{args:[0],msg:"precision: Precision cannot be negative"}},comment:"Number of decimal places for this currency"},price:{type:sequelize_1.DataTypes.DOUBLE,allowNull:!0,validate:{isFloat:{msg:"price: Price must be a valid number"},min:{args:[0],msg:"price: Price cannot be negative"}},comment:"Current price of the currency in base currency"},status:{type:sequelize_1.DataTypes.BOOLEAN,allowNull:!1,defaultValue:!1,validate:{notNull:{msg:"status: Status cannot be null"}},comment:"Whether this currency is active and available for trading"}},{sequelize:e,modelName:"currency",tableName:"currency",timestamps:!1,indexes:[{name:"PRIMARY",unique:!0,using:"BTREE",fields:[{name:"id"}]}]})}static associate(e){}}exports.default=currency;