import { IsNotEmpty, IsDate } from "class-validator"; import type OfficeFolder from "./OfficeFolder"; import type User from "../Notary/User"; 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; } } export default OfficeFolderHasStakeholder;