"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,l,i){void 0===i&&(i=l);var a=Object.getOwnPropertyDescriptor(t,l);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[l]}});Object.defineProperty(e,i,a)}:function(e,t,l,i){void 0===i&&(i=l);e[i]=t[l]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(){var e=function(t){e=Object.getOwnPropertyNames||function(e){var t=[];for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(t[t.length]=l);return t};return e(t)};return function(t){if(t&&t.__esModule)return t;var l={};if(null!=t)for(var i=e(t),a=0;a<i.length;a++)"default"!==i[a]&&__createBinding(l,t,i[a]);__setModuleDefault(l,t);return l}}();Object.defineProperty(exports,"__esModule",{value:!0});const Sequelize=__importStar(require("sequelize")),sequelize_1=require("sequelize");class slider extends sequelize_1.Model{static initModel(e){return slider.init({id:{type:sequelize_1.DataTypes.UUID,defaultValue:sequelize_1.DataTypes.UUIDV4,primaryKey:!0,allowNull:!1,comment:"Unique identifier for the slider item"},image:{type:sequelize_1.DataTypes.STRING(255),allowNull:!1,validate:{notEmpty:{msg:"image: Image cannot be empty"}},comment:"URL path to the slider image"},link:{type:sequelize_1.DataTypes.STRING(255),allowNull:!0,comment:"Optional URL that the slider image should link to when clicked"},status:{type:sequelize_1.DataTypes.BOOLEAN,allowNull:!0,defaultValue:!0,comment:"Whether this slider item is active and should be displayed"},createdAt:{type:sequelize_1.DataTypes.DATE,allowNull:!0,defaultValue:Sequelize.NOW},updatedAt:{type:sequelize_1.DataTypes.DATE,allowNull:!0,defaultValue:Sequelize.NOW},deletedAt:{type:sequelize_1.DataTypes.DATE,allowNull:!0}},{sequelize:e,modelName:"slider",tableName:"slider",timestamps:!0,paranoid:!0,indexes:[{name:"PRIMARY",unique:!0,using:"BTREE",fields:[{name:"id"}]}]})}static associate(e){}}exports.default=slider;