"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommentDto = exports.commentSchema = void 0;
const account_dto_1 = require("../../account/dto/account.dto");
const translate_1 = require("../../i18n/translate");
const zod_nestjs_1 = require("@anatine/zod-nestjs");
const zod_1 = require("zod");
exports.commentSchema = zod_1.z.object({
    id: zod_1.z.string().uuid({
        message: (0, translate_1.translate)('model.comment.id.uuid'),
    }),
    content: zod_1.z.string().min(1, {
        message: (0, translate_1.translate)('model.comment.content.min'),
    }),
    createdBy: account_dto_1.accountSchema.shape.id,
    isSolvable: zod_1.z.boolean().default(false),
    isSolved: zod_1.z.boolean().default(false),
    solvedAt: zod_1.z.string().datetime().optional(),
    solvedBy: account_dto_1.accountSchema.shape.id.optional(),
    created_at: zod_1.z.string().datetime(),
    updated_at: zod_1.z.string().datetime(),
});
class CommentDto extends (0, zod_nestjs_1.createZodDto)(exports.commentSchema) {
}
exports.CommentDto = CommentDto;
//# sourceMappingURL=comment.dto.js.map