21 lines
437 B
TypeScript
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;
|
|
}
|