Organization.ts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. @Str('', {nullable: true})
  8. name!: string
  9. @Str('', {nullable: true})
  10. acronym!: string
  11. @Str('', {nullable: true})
  12. siretNumber!: string
  13. @Str('', {nullable: true})
  14. apeNumber!: string
  15. @Str('', {nullable: true})
  16. waldecNumber!: string
  17. @Str('', {nullable: true})
  18. identifier!: string
  19. @Str('', {nullable: true})
  20. ffecApproval!: string
  21. @Str('', {nullable: true})
  22. description!: string
  23. @Str('', {nullable: true})
  24. otherPractice!: string
  25. @Str('', {nullable: true})
  26. legalStatus!: string
  27. @Str('', {nullable: true})
  28. principalType!: string
  29. @Str('', {nullable: true})
  30. youngApproval!: string
  31. @Str('', {nullable: true})
  32. trainingApproval!: string
  33. @Str('', {nullable: true})
  34. otherApproval!: string
  35. @Str('', {nullable: true})
  36. collectiveAgreement!: string
  37. @Str('', {nullable: true})
  38. opca!: string
  39. @Str('', {nullable: true})
  40. icomNumber!: string
  41. @Str('', {nullable: true})
  42. urssafNumber!: string
  43. @Str('', {nullable: true})
  44. twitter!: string
  45. @Str('', {nullable: true})
  46. facebook!: string
  47. @Str('', {nullable: true})
  48. instagram!: string
  49. @Bool(true, {nullable: false})
  50. portailVisibility!: boolean
  51. @Str('', {nullable: true})
  52. image!: string
  53. @Str('', {nullable: true})
  54. creationDate!: string
  55. @Str('', {nullable: true})
  56. prefectureName!: string
  57. @Str('', {nullable: true})
  58. prefectureNumber!: string
  59. @Str('', {nullable: true})
  60. declarationDate!: string
  61. @Str('', {nullable: true})
  62. tvaNumber!: string
  63. @Str('', {nullable: true})
  64. schoolCategory!: string
  65. @Str('', {nullable: true})
  66. typeEstablishment!: string
  67. @Str('', {nullable: true})
  68. typeEstablishmentDetail!: string
  69. @Bool(false, {nullable: false})
  70. isPerformanceContractor!: boolean
  71. @Num(0, {nullable: true})
  72. budget!: number
  73. @Bool(false, {nullable: false})
  74. isPedagogicIsPrincipalActivity!: boolean
  75. @Num(0, {nullable: true})
  76. pedagogicBudget!: number
  77. }