Place.ts 1000 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { Str, Uid } from 'pinia-orm/dist/decorators'
  2. import ApiModel from '~/models/ApiModel'
  3. import {Assert, IriEncoded} from '~/models/decorators'
  4. import {Attr, Num} from "pinia-orm/decorators";
  5. import Country from "~/models/Core/Country";
  6. /**
  7. * AP2i Model : Freemium / Place
  8. *
  9. * */
  10. export default class Place extends ApiModel {
  11. static entity = 'freemium/places'
  12. @Uid()
  13. declare id: number | string | null
  14. @Attr(null)
  15. declare EventId: number | null
  16. @Str(null)
  17. @Assert({'nullable': false, 'max':255})
  18. declare name: string | null
  19. @Str(null)
  20. declare streetAddress: string | null
  21. @Str(null)
  22. declare streetAddressSecond: string | null
  23. @Str(null)
  24. declare streetAddressThird: string | null
  25. @Str(null)
  26. declare postalCode: string | null
  27. @Str(null)
  28. declare addressCity: string | null
  29. @IriEncoded(Country)
  30. @Attr(null)
  31. declare addressCountry: number | null
  32. @Num(null)
  33. declare latitude: number | null
  34. @Num(null)
  35. declare longitude: number | null
  36. }