import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty } from "class-validator";
import { extname } from "path";

export class CreateTaskDto {
    @IsNotEmpty()
    @ApiProperty()
    task_name:string;

    @IsNotEmpty()
    @ApiProperty()
    project_id:number;

    @IsNotEmpty()
    @ApiProperty()
    client_id:number;

    @ApiProperty()
    start_date: string;

    @ApiProperty()
    end_date: string;

    @ApiProperty()
    custom_attribute: Record<string, any>;

    @ApiProperty()
    created_at: Date;

   }

export class UpdateTaskDto {
    @IsNotEmpty()
    @ApiProperty()
    task_name:string;

    @IsNotEmpty()
    @ApiProperty()
    project_id:number;

    @IsNotEmpty()
    @ApiProperty()
    client_id:number;

    @ApiProperty()
    start_date: string;

    @ApiProperty()
    end_date: string;

    @ApiProperty()
    custom_attribute: Record<string, any>;

    @ApiProperty()
    updated_at: Date;

   
           
}

export class CreateAssignTaskDto {
    @IsNotEmpty()
    @ApiProperty()
    team_id:number;

    @IsNotEmpty()
    @ApiProperty()
    task_id:number;
 
       
}

export class UpdateAssignTaskDto {
    @IsNotEmpty()
    @ApiProperty()
    team_id:number;

    @IsNotEmpty()
    @ApiProperty()
    task_id:number;
       
}