Jag tror att platsen skulle ha liknande struktur som koden nedan.
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[];
}