File.ts 642 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { Num, Str, Uid } from 'pinia-orm/dist/decorators'
  2. import ApiModel from '~/models/ApiModel'
  3. /**
  4. * AP2i Model : File
  5. *
  6. * @see https://gitlab.2iopenservice.com/opentalent/ap2i/-/blob/develop/src/Entity/Core/File.php
  7. */
  8. export default class File extends ApiModel {
  9. static entity = 'files'
  10. @Uid()
  11. declare id: number | string | null
  12. @Str('')
  13. declare name: string
  14. @Str('')
  15. declare imgFieldName: string
  16. @Str('')
  17. declare visibility: string
  18. @Str('')
  19. declare config: string
  20. @Str('')
  21. declare folder: string
  22. @Num(null)
  23. declare ownerId: number
  24. @Str('')
  25. declare status: 'PENDING' | 'READY' | 'ERROR'
  26. }