echadospalante-core
Version:
This package contains the core of the echadospalante project, it contains the domain entities, helpers, and other utilities that are shared between the different services.
31 lines (25 loc) • 596 B
text/typescript
import {
Entity,
PrimaryGeneratedColumn,
Column,
OneToOne,
Point,
Index,
} from "typeorm";
import { VentureEventData } from "./venture-event.data";
({ name: "event_location" })
export class EventLocationData {
("uuid")
id: string;
("geometry", {
spatialFeatureType: "Point",
srid: 4326,
nullable: true,
})
({ spatial: true })
public location?: Point;
({ nullable: true })
description?: string;
(() => VentureEventData, (ventureEvent) => ventureEvent.location)
event?: VentureEventData;
}