UNPKG

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.

18 lines (13 loc) 482 B
import { Entity, PrimaryGeneratedColumn, Column, OneToOne } from "typeorm"; import { VentureEventData } from "./venture-event.data"; @Entity({ name: "event_contact" }) export class EventContactData { @PrimaryGeneratedColumn("uuid") id: string; @Column("varchar", { nullable: true }) phoneNumber?: string; @Column("varchar", { nullable: true }) email?: string; @OneToOne(() => VentureEventData, (ventureEvent) => ventureEvent.contact) event?: VentureEventData; }