import { ApiProperty } from "@nestjs/swagger"
import { IsOptional } from "class-validator"

export class CreateCompanySettingDto {
  @ApiProperty({
    description: "Working Hours Per Day",
    example: 8.5,
  })
  @IsOptional()
  working_hours_per_day: number

  @ApiProperty({
    description: "Working Days Per Month",
    example: 26,
  })
  @IsOptional()
  working_days_per_month: number

  @ApiProperty({
    description: "Break Minutes Per Day",
    example: 60,
  })
  @IsOptional()
  break_minutes_per_day: number

  @ApiProperty({
    description: "Last Day to Fill MIS Report",
    example: 4,
  })
  @IsOptional()
  last_day_to_fill_mis_report: number

  @ApiProperty({
    description: "Notes",
    example: "This company follows flexible working policy.",
  })
  @IsOptional()
  notes: string

  @ApiProperty({
    description: "Basic Salary Percentage",
    example: "45",
  })
  @IsOptional()
  basic_salary_percentage: string

  @ApiProperty({
    description: "Company Name",
    example: "Company Name",
  })
  @IsOptional()
  company_name: string

  @ApiProperty({
    description: "Company Website",
    example: "https://www.companyname.com",
  })
  @IsOptional()
  website: string

  @ApiProperty({
    description: "HR Email",
    example: "hr@companyname.com",
  })
  @IsOptional()
  hr_email: string

  @ApiProperty({
    description: "Company Address",
    example: "123 Business Street, City, State, ZIP",
  })
  @IsOptional()
  address: string

  @ApiProperty({
    description: "Company Footer Text",
    example: "footer text",
  })
  @IsOptional()
  footer: string

  @ApiProperty({
    description: "Company Logo File",
    type: "string",
    format: "binary",
    required: false,
  })
  @IsOptional()
  logo: string

  @ApiProperty({
    description: "Final Approval By User ID",
    example: 1,
  })
  @IsOptional()
  final_approval_by: number
}
