News.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import ApiModel from "~/models/ApiModel";
  2. import {Uid, Str, Bool, Attr} from "pinia-orm/dist/decorators";
  3. /**
  4. * Maestro Model : News
  5. *
  6. * @see https://gitlab.2iopenservice.com/opentalent/maestro/-/blob/master/src/Entity/News/News.php?ref_type=heads
  7. */
  8. export default class News extends ApiModel {
  9. static entity = 'news'
  10. @Uid()
  11. declare id: number | string
  12. @Str(null)
  13. declare type: string | null
  14. @Str(null)
  15. declare title: string | null
  16. @Str(null)
  17. declare leadText: string | null
  18. @Str(null)
  19. declare bodyText: string | null
  20. declare featured: boolean
  21. @Bool(false)
  22. declare favorite: boolean
  23. @Attr({})
  24. declare attachmentFile: any
  25. @Str(null)
  26. declare attachment: string | null
  27. @Str(null)
  28. declare startPublication: string | null
  29. @Str(null)
  30. declare updatedAt: string | null
  31. @Str(null)
  32. declare endPublication: string | null
  33. @Str(null)
  34. declare domainType: string | null
  35. @Str(null)
  36. declare eventType: string | null
  37. @Str(null)
  38. declare categoryType: string | null
  39. @Str(null)
  40. declare productType: string | null
  41. @Str(null)
  42. declare optionsType: string | null
  43. @Str(null)
  44. declare subOptionsType: string | null
  45. @Attr([])
  46. declare tags: string[]
  47. @Bool(false)
  48. declare visible: boolean
  49. }