"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const sequelize_1=require("sequelize");class ecosystemBlockchain extends sequelize_1.Model{static initModel(e){return ecosystemBlockchain.init({id:{type:sequelize_1.DataTypes.UUID,defaultValue:sequelize_1.DataTypes.UUIDV4,primaryKey:!0,allowNull:!1},productId:{type:sequelize_1.DataTypes.STRING(191),allowNull:!1,unique:"ecosystemBlockchainProductIdKey",validate:{notEmpty:{msg:"productId: Product ID must not be empty"}}},name:{type:sequelize_1.DataTypes.STRING(191),allowNull:!1,unique:"ecosystemBlockchainNameKey",validate:{notEmpty:{msg:"name: Name must not be empty"}}},chain:{type:sequelize_1.DataTypes.STRING(191),allowNull:!0},description:{type:sequelize_1.DataTypes.TEXT,allowNull:!0},link:{type:sequelize_1.DataTypes.STRING(191),allowNull:!0,validate:{isUrl:{msg:"link: Link must be a valid URL"}}},status:{type:sequelize_1.DataTypes.BOOLEAN,allowNull:!1,defaultValue:!0,validate:{isBoolean:{msg:"status: Status must be a boolean value"}}},version:{type:sequelize_1.DataTypes.STRING(191),allowNull:!0,defaultValue:"0.0.1"},image:{type:sequelize_1.DataTypes.STRING(1e3),allowNull:!0,validate:{is:{args:["^/(uploads|img)/.*$","i"],msg:"image: Image must be a valid URL"}}}},{sequelize:e,modelName:"ecosystemBlockchain",tableName:"ecosystem_blockchain",timestamps:!1,indexes:[{name:"PRIMARY",unique:!0,using:"BTREE",fields:[{name:"id"}]},{name:"ecosystemBlockchainProductIdKey",unique:!0,using:"BTREE",fields:[{name:"productId"}]},{name:"ecosystemBlockchainNameKey",unique:!0,using:"BTREE",fields:[{name:"name"}]}]})}static associate(e){}}exports.default=ecosystemBlockchain;