lecoffre-ressources/src/Interfaces/Client/OfficeFolderHasStakeholder.ts
2023-03-22 18:50:25 +01:00

23 lines
569 B
TypeScript

import { IsNotEmpty, IsDate } from "class-validator";
import { OfficeFolder } from "./OfficeFolder";
import { User } from "./User";
export namespace OfficeFolderHasStakeholder {
export class IOfficeFolderHasStakeholder {
@IsNotEmpty()
public uuid!: string;
@IsNotEmpty({ groups: ["create"] })
public user_stakeholder!: User.IUser;
@IsNotEmpty({ groups: ["create"] })
public office_folder!: OfficeFolder.IOfficeFolder;
@IsDate()
public created_at: Date | null = null;
@IsDate()
public updated_at: Date | null = null;
}
}