"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.investmentStoreSchema=exports.investmentUpdateSchema=exports.baseInvestmentSchema=exports.investmentSchema=void 0;const schema_1=require("@b/utils/schema"),id=(0,schema_1.baseStringSchema)("ID of the Investment"),userId=(0,schema_1.baseStringSchema)("ID of the User"),planId=(0,schema_1.baseStringSchema)("ID of the General Plan",191,0,!0),durationId=(0,schema_1.baseStringSchema)("ID of the General Duration",191,0,!0),amount=(0,schema_1.baseNumberSchema)("Invested Amount"),profit=(0,schema_1.baseNumberSchema)("Profit from Investment"),result=(0,schema_1.baseEnumSchema)("Result of the Investment",["WIN","LOSS","DRAW"]),status=(0,schema_1.baseEnumSchema)("Status of the Investment",["ACTIVE","COMPLETED","CANCELLED","REJECTED"]),endDate=(0,schema_1.baseDateTimeSchema)("End Date of the Investment"),createdAt=(0,schema_1.baseDateTimeSchema)("Creation Date of the Investment"),updatedAt=(0,schema_1.baseDateTimeSchema)("Last Update Date of the Investment"),deletedAt=(0,schema_1.baseDateTimeSchema)("Deletion Date of the Investment",!0);exports.investmentSchema={id:id,userId:userId,planId:planId,durationId:durationId,amount:amount,profit:profit,result:result,status:status,endDate:endDate,createdAt:createdAt,updatedAt:updatedAt,deletedAt:deletedAt};exports.baseInvestmentSchema={id:id,userId:userId,planId:planId,durationId:durationId,amount:amount,profit:profit,result:result,status:status,endDate:endDate,createdAt:createdAt,updatedAt:updatedAt,deletedAt:deletedAt};exports.investmentUpdateSchema={type:"object",properties:{userId:userId,planId:planId,durationId:durationId,amount:amount,profit:profit,result:result,status:status,endDate:endDate},required:["status"]};exports.investmentStoreSchema={description:"Investment created or updated successfully",content:{"application/json":{schema:{type:"object",properties:exports.baseInvestmentSchema}}}};