Organization.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. import {Attr, Str, Bool, Num} from '@vuex-orm/core'
  2. import {Model} from "~/models/Model";
  3. export class Organization extends Model{
  4. static entity = 'organizations'
  5. @Attr(null)
  6. id!: number | null
  7. @Attr({})
  8. originalState!: object | null
  9. @Str('', {nullable: true})
  10. name!: string
  11. @Str('', {nullable: true})
  12. acronym!: string
  13. @Str('', {nullable: true})
  14. siretNumber!: string
  15. @Str('', {nullable: true})
  16. apeNumber!: string
  17. @Str('', {nullable: true})
  18. waldecNumber!: string
  19. @Str('', {nullable: true})
  20. identifier!: string
  21. @Str('', {nullable: true})
  22. ffecApproval!: string
  23. @Str('', {nullable: true})
  24. description!: string
  25. @Str('', {nullable: true})
  26. otherPractice!: string
  27. @Str('', {nullable: true})
  28. legalStatus!: string
  29. @Str('', {nullable: true})
  30. principalType!: string
  31. @Str('', {nullable: true})
  32. youngApproval!: string
  33. @Str('', {nullable: true})
  34. trainingApproval!: string
  35. @Str('', {nullable: true})
  36. otherApproval!: string
  37. @Str('', {nullable: true})
  38. collectiveAgreement!: string
  39. @Str('', {nullable: true})
  40. opca!: string
  41. @Str('', {nullable: true})
  42. icomNumber!: string
  43. @Str('', {nullable: true})
  44. urssafNumber!: string
  45. @Str('', {nullable: true})
  46. twitter!: string
  47. @Str('', {nullable: true})
  48. facebook!: string
  49. @Str('', {nullable: true})
  50. instagram!: string
  51. @Bool(true, {nullable: false})
  52. portailVisibility!: boolean
  53. @Str('', {nullable: true})
  54. image!: string
  55. @Str('', {nullable: true})
  56. creationDate!: string
  57. @Str('', {nullable: true})
  58. prefectureName!: string
  59. @Str('', {nullable: true})
  60. prefectureNumber!: string
  61. @Str('', {nullable: true})
  62. declarationDate!: string
  63. @Str('', {nullable: true})
  64. tvaNumber!: string
  65. @Str('', {nullable: true})
  66. schoolCategory!: string
  67. @Str('', {nullable: true})
  68. typeEstablishment!: string
  69. @Str('', {nullable: true})
  70. typeEstablishmentDetail!: string
  71. @Bool(false, {nullable: false})
  72. isPerformanceContractor!: boolean
  73. @Num(0, {nullable: true})
  74. budget!: number
  75. @Bool(false, {nullable: false})
  76. isPedagogicIsPrincipalActivity!: boolean
  77. @Num(0, {nullable: true})
  78. pedagogicBudget!: number
  79. }