import { Str, Uid, Attr, Num } from 'pinia-orm/dist/decorators' import ApiModel from '~/models/ApiModel' import { Assert, IriEncoded } from '~/models/decorators' import Country from '~/models/Core/Country' /** * AP2i Model : Freemium / Place * * */ export default class Place extends ApiModel { static entity = 'freemium/places' @Uid() declare id: number | string | null @Attr(null) declare EventId: number | null @Str(null) @Assert({ nullable: false, max: 255 }) declare name: string | null @Str(null) declare streetAddress: string | null @Str(null) declare streetAddressSecond: string | null @Str(null) declare streetAddressThird: string | null @Str(null) declare postalCode: string | null @Str(null) declare addressCity: string | null @IriEncoded(Country) @Attr(null) declare addressCountry: number | null @Num(null) declare latitude: number | null @Num(null) declare longitude: number | null }