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

export class CreateProjectDto {

    @ApiProperty()
    project_name:string;

    @ApiProperty()
    project_desc:string;

    @ApiProperty()
    client_name:string;

}


export class UpdateProjectDto {
    
    @ApiProperty()
    project_name:string;

    @ApiProperty()
    project_desc:string;

    @ApiProperty()
    client_name:string;



}

export class CreateProjectHistoryDto {
  
    @ApiProperty()
    project_id:number;

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

    @ApiProperty()
    team_id:number;

    @ApiProperty()
    project_status:string;

    @ApiProperty()
    sub_project_id:number;

    @ApiProperty()
    sub_sub_project_id:number;
}


export class UpdateProjectHistoryDto {
    @ApiProperty()
    project_id:number;

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

    @ApiProperty()
    team_id:number;

    @ApiProperty()
    project_status:string;

    @ApiProperty()
    sub_project_id:number;

    @ApiProperty()
    sub_sub_project_id:number;
}



export class CreateSubProjectDto {
    @IsNotEmpty()
    @ApiProperty()
    sub_project_name:string;

    @IsNotEmpty()
    @ApiProperty()
    client_name:string;

    @IsNotEmpty()
    @ApiProperty()
    project_name:string;

    @IsNotEmpty()
    @ApiProperty()
    sub_project_desc:string;

    @ApiProperty()
    project_status:string;

    @ApiProperty()
    sub_sub_project_id:number;
}


export class UpdateSubProjectDto {
    @IsNotEmpty()
    @ApiProperty()
    sub_project_name:string;

    @IsNotEmpty()
    @ApiProperty()
    client_name:string;

    @IsNotEmpty()
    @ApiProperty()
    project_name:string;

    @IsNotEmpty()
    @ApiProperty()
    sub_project_desc:string;

    @ApiProperty()
    project_status:string;

    @ApiProperty()
    sub_sub_project_id:number;

}

export class CreateSubSubProjectDto {
    @IsNotEmpty()
    @ApiProperty()
    sub_sub_project_name:string;

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

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

    @IsNotEmpty()
    @ApiProperty()
    sub_sub_project_desc:string;

    @ApiProperty()
    project_status:string;
}


export class UpdateSubSubProjectDto {
    @IsNotEmpty()
    @ApiProperty()
    sub_sub_project_name:string;

    @ApiProperty()
    sub_sub_project_desc:string;


    @ApiProperty()
    client_id:number;


    @ApiProperty()
    project_id:number;

    @ApiProperty()
    project_status:string;

   

}