lecoffre-ressources/src/Interfaces/IUserHasNotification.ts
2023-03-15 14:07:38 +01:00

21 lines
437 B
TypeScript

import { IsNotEmpty, IsDate } from "class-validator";
import INotification from "./INotification";
import IUser from "./IUser";
export default class IUserHasNotification {
@IsNotEmpty()
public uuid!: string;
@IsNotEmpty({ groups: ["create"] })
public user!: IUser;
@IsNotEmpty({ groups: ["create"] })
public notification!: INotification;
@IsDate()
public created_at?: Date;
@IsDate()
public updated_at?: Date;
}