"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const sequelize_1=require("sequelize");class announcement extends sequelize_1.Model{static initModel(e){return announcement.init({id:{type:sequelize_1.DataTypes.UUID,defaultValue:sequelize_1.DataTypes.UUIDV4,primaryKey:!0,allowNull:!1},type:{type:sequelize_1.DataTypes.ENUM("GENERAL","EVENT","UPDATE"),allowNull:!1,defaultValue:"GENERAL",validate:{isIn:{args:[["GENERAL","EVENT","UPDATE"]],msg:"type: Type must be one of GENERAL, EVENT, UPDATE"}}},title:{type:sequelize_1.DataTypes.STRING(255),allowNull:!1,validate:{notEmpty:{msg:"title: Title cannot be empty"}}},message:{type:sequelize_1.DataTypes.TEXT,allowNull:!1,validate:{notEmpty:{msg:"message: Message cannot be empty"}}},link:{type:sequelize_1.DataTypes.STRING(255),allowNull:!0},status:{type:sequelize_1.DataTypes.BOOLEAN,allowNull:!0,defaultValue:!0}},{sequelize:e,modelName:"announcement",tableName:"announcement",timestamps:!0,paranoid:!0,indexes:[{name:"PRIMARY",unique:!0,using:"BTREE",fields:[{name:"id"}]}]})}static associate(e){}}exports.default=announcement;