import { IsInt, IsOptional, IsString } from "class-validator";

export class TicketList {
    @IsInt() id: number;
    @IsString() status: string;
    @IsString() @IsOptional() assignTo: string;
    @IsString() deliveryAddress: string;
    @IsString() subject: string;
    @IsString() department: string;
    @IsInt() @IsOptional() parentTicketId: number;
    @IsString() dueDate: string;
    @IsString() updatedAt: string;
    @IsString() @IsOptional() completedAt: string;
}