import { ApiProperty } from '@nestjs/swagger';
import { IsBoolean, IsNotEmpty, IsOptional, IsString } from 'class-validator';

export class CreateTenantDto {
  @ApiProperty({ example: 'VOXSATEC Demo Company' })
  @IsString()
  @IsNotEmpty()
  name: string;

  @ApiProperty({ example: 'voxsatec-demo' })
  @IsString()
  @IsNotEmpty()
  slug: string;

  @ApiProperty({ example: 'chat.voxsatec.com', required: false })
  @IsOptional()
  @IsString()
  domain?: string;

  @ApiProperty({ example: 'https://example.com/logo.png', required: false })
  @IsOptional()
  @IsString()
  logoUrl?: string;

  @ApiProperty({ example: true, required: false })
  @IsOptional()
  @IsBoolean()
  isWhiteLabel?: boolean;
}