25 lines
592 B
TypeScript
25 lines
592 B
TypeScript
import { IsNotEmpty, IsDate, IsOptional } from "class-validator";
|
|
import IOfficeFolder from "./IOfficeFolder";
|
|
import IDeedHasDocumentType from "./IDeedHasDocumentType";
|
|
import IDeedType from "./IDeedTypes";
|
|
|
|
export default class IDeed {
|
|
@IsNotEmpty()
|
|
public uuid!: string;
|
|
|
|
@IsNotEmpty({ groups: ["create"] })
|
|
public deed_type!: IDeedType;
|
|
|
|
@IsDate()
|
|
public created_at: Date | null = null;
|
|
|
|
@IsDate()
|
|
public updated_at: Date | null = null;
|
|
|
|
@IsOptional()
|
|
public deed_has_document_types?: IDeedHasDocumentType[];
|
|
|
|
@IsOptional()
|
|
public office_folder?: IOfficeFolder;
|
|
}
|