import { BaseStatusDto } from 'src/core/modules/infrastructure/dto/base-status.dto';
import { FaqEntity } from '../../domain/entities/faq.entity';
import { IsString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { Exclude } from 'class-transformer';

export class FaqDto extends BaseStatusDto implements FaqEntity {
  @Exclude()
  sort_order: number;

  @ApiProperty({
    type: String,
    required: true,
    example: 'Booking',
  })
  @IsString()
  title: string;

  @ApiProperty({
    type: String,
    required: false,
    example: 'Booking descs',
  })
  description: string;
}
