Notification.ts 736 B

1234567891011121314151617181920212223242526272829303132333435
  1. import NotificationMessage from "~/models/Core/NotificationMessage";
  2. import {HasOne, Str, Uid, Attr} from "pinia-orm/dist/decorators";
  3. import ApiModel from "~/models/ApiModel";
  4. /**
  5. * AP2i Model : Notification
  6. *
  7. * @see https://gitlab.2iopenservice.com/opentalent/ap2i/-/blob/develop/src/Entity/Core/Notification.php
  8. */
  9. export default class Notification extends ApiModel {
  10. static entity = 'notifications'
  11. @Uid()
  12. declare id: number | string | null
  13. @Str('')
  14. declare name: string
  15. @Attr({})
  16. declare message: NotificationMessage | null
  17. @Str('')
  18. declare createDate: string
  19. @Str(null)
  20. declare type: string|null
  21. @Str(null)
  22. declare link: string|null
  23. @Attr({})
  24. declare notificationUsers: Array<string>
  25. }