Notification.ts 743 B

123456789101112131415161718192021222324252627282930313233
  1. import { Str, Uid, Attr } from 'pinia-orm/dist/decorators'
  2. import type NotificationMessage from '~/models/Core/NotificationMessage'
  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(null)
  18. declare createDate: string | null
  19. @Str(null)
  20. declare type: string | null
  21. @Str(null)
  22. declare link: string | null
  23. @Attr({})
  24. declare notificationUsers: Array<string>
  25. }