"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const sequelize_1=require("sequelize");class extension extends sequelize_1.Model{static initModel(e){return extension.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:"extensionProductIdKey",validate:{notEmpty:{msg:"productId: Product ID must not be empty"}},comment:"Unique product identifier for the extension"},name:{type:sequelize_1.DataTypes.STRING(191),allowNull:!1,unique:"extensionNameKey",validate:{notEmpty:{msg:"name: Name must not be empty"}},comment:"Internal name identifier for the extension"},title:{type:sequelize_1.DataTypes.STRING(191),allowNull:!0,comment:"Display title of the extension"},description:{type:sequelize_1.DataTypes.TEXT,allowNull:!0,comment:"Description of the extension functionality"},link:{type:sequelize_1.DataTypes.STRING(191),allowNull:!0,validate:{isUrl:{msg:"link: Link must be a valid URL"}},comment:"URL link to extension documentation or website"},status:{type:sequelize_1.DataTypes.BOOLEAN,allowNull:!1,defaultValue:!0,validate:{isBoolean:{msg:"status: Status must be a boolean value"}},comment:"Whether the extension is active and available"},version:{type:sequelize_1.DataTypes.STRING(191),allowNull:!0,defaultValue:"0.0.1",comment:"Version number of the extension"},image:{type:sequelize_1.DataTypes.STRING(1e3),allowNull:!0,validate:{is:{args:["^/(uploads|img)/.*$","i"],msg:"image: image must be a valid URL"}},comment:"URL path to the extension's icon or logo"}},{sequelize:e,modelName:"extension",tableName:"extension",timestamps:!1,indexes:[{name:"PRIMARY",unique:!0,using:"BTREE",fields:[{name:"id"}]},{name:"extensionProductIdKey",unique:!0,using:"BTREE",fields:[{name:"productId"}]},{name:"extensionNameKey",unique:!0,using:"BTREE",fields:[{name:"name"}]}]})}static associate(e){}}exports.default=extension;