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.
35 lines (27 loc) • 687 B
text/typescript
import {
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
UpdateDateColumn,
OneToOne,
Index,
} from "typeorm";
import { Point } from "geojson";
import { VentureData } from "./venture.data";
({ name: "venture_location" })
export class VentureLocationData {
("uuid")
id: string;
("geometry", { spatialFeatureType: "Point", srid: 4326 })
({ spatial: true })
public location: Point;
({ nullable: true })
description?: string;
()
createdAt: Date;
()
updatedAt: Date;
(() => VentureData, (venture) => venture.location)
Venture?: VentureData;
}