import { ApiProperty } from '@nestjs/swagger';
import { IsDate, IsNumber, IsString } from 'class-validator';

export class CreateLogDto {
	@ApiProperty()
	@IsDate()
	timestamp: Date;

	@ApiProperty()
	@IsString()
	level: string;

	@ApiProperty()
	@IsString()
	message: string;

	@ApiProperty()
	@IsString()
	meta: string;

	@ApiProperty()
	@IsString()
	type: string;

	@ApiProperty()
	@IsNumber()
	typeId: number;
}
