| 1234567891011121314151617181920212223242526272829303132333435 |
- import NotificationMessage from "~/models/Core/NotificationMessage";
- import {HasOne, Str, Uid, Attr} from "pinia-orm/dist/decorators";
- 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<string>
- }
|