Ich denke, der Standort hätte eine ähnliche Struktur wie der unten stehende Code.
enum GeoJSONPoint {
Point = "Point"
}
enum Careers {
WebDevelopment = 'Web Development',
MobileDevelopment = 'Mobile Development',
UIUX = 'UI/UX',
DataScience = 'Data Science',
Business = 'Business',
Other = 'Other'
}
@Entity('location')
export class LocationEntity extends BaseEntity {
@Column({
type: "enum",
enum: GeoJSONPoint
})
type: GeoJSONPoint;
@Column({type:'int'})
coordinates: number;
@Column({type:'text'})
formattedAddress: string;
@Column({type:'text'})
street: string;
@Column({type:'text'})
city: string;
@Column({type:'text'})
state: string;
@Column({type:'text'})
zipcode: string;
@Column({type:'text'})
country: string;
@Column({type:'simple-array'})
careers: Careers[];
}