import { Str, Uid, Attr } from 'pinia-orm/dist/decorators' import NotificationMessage from '~/models/Core/NotificationMessage' import ApiModel from '~/models/ApiModel' /** * AP2i Model : Notification * * @see https://gitlab.2iopenservice.com/opentalent/ap2i/-/blob/develop/src/Entity/Core/Notification.php */ export default class Notification extends ApiModel { static entity = 'notifications' @Uid() declare id: number | string | null @Str('') declare name: string @Attr({}) declare message: NotificationMessage | null @Str('') declare createDate: string @Str(null) declare type: string | null @Str(null) declare link: string | null @Attr({}) declare notificationUsers: Array }