Files
Picsur/shared/src/entities/syspreference.entity.ts

17 lines
332 B
TypeScript
Raw Normal View History

2022-03-12 16:25:15 +01:00
import { IsEnum, IsInt, IsNotEmpty, IsOptional, IsString } from 'class-validator';
2022-03-04 12:24:49 +01:00
import { SysPreferences } from '../dto/syspreferences.dto';
2022-03-03 22:48:03 +01:00
export class ESysPreference {
@IsOptional()
2022-03-12 16:25:15 +01:00
@IsInt()
2022-03-03 22:48:03 +01:00
id?: number;
@IsNotEmpty()
2022-03-04 12:24:49 +01:00
@IsEnum(SysPreferences)
key: SysPreferences;
2022-03-03 22:48:03 +01:00
@IsNotEmpty()
2022-03-12 16:25:15 +01:00
@IsString()
2022-03-03 22:48:03 +01:00
value: string;
}