"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const sequelize_1=require("sequelize");class p2pAdminActivity extends sequelize_1.Model{static initModel(e){return p2pAdminActivity.init({id:{type:sequelize_1.DataTypes.UUID,defaultValue:sequelize_1.DataTypes.UUIDV4,primaryKey:!0,allowNull:!1},type:{type:sequelize_1.DataTypes.STRING(50),allowNull:!1,validate:{notEmpty:{msg:"type: Activity type must not be empty"}}},relatedEntityId:{type:sequelize_1.DataTypes.UUID,allowNull:!1,validate:{notNull:{msg:"relatedEntityId cannot be null"},isUUID:{args:4,msg:"relatedEntityId must be a valid UUID"}}},relatedEntityName:{type:sequelize_1.DataTypes.STRING(191),allowNull:!1,validate:{notEmpty:{msg:"relatedEntityName must not be empty"}}},adminId:{type:sequelize_1.DataTypes.UUID,allowNull:!1,validate:{notNull:{msg:"adminId cannot be null"},isUUID:{args:4,msg:"adminId must be a valid UUID"}}}},{sequelize:e,modelName:"p2pAdminActivity",tableName:"p2p_admin_activity",timestamps:!0,paranoid:!0})}static associate(e){p2pAdminActivity.belongsTo(e.user,{as:"admin",foreignKey:"adminId",onDelete:"CASCADE",onUpdate:"CASCADE"})}}exports.default=p2pAdminActivity;