import {
  IsString,
  IsOptional,
  IsDateString,
  IsUrl,
} from 'class-validator';

export class CreateSchoolDto {
  @IsString()
  @IsOptional()
  address?: string;

  @IsString()
  @IsOptional()
  phone?: string;

  @IsString()
  @IsOptional()
  principal?: string;

  @IsDateString()
  @IsOptional()
  established?: string;

  @IsString()
  @IsOptional()
  description?: string;

  @IsUrl()
  @IsOptional()
  logo?: string;

  @IsUrl()
  @IsOptional()
  website?: string;
}

