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.

31 lines (24 loc) 530 B
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, OneToOne, } from "typeorm"; import { VentureData } from "./venture.data"; @Entity({ name: "venture_contact" }) export class VentureContactData { @PrimaryGeneratedColumn("uuid") id: string; @Column() email: string; @Column() phoneNumber: string; @CreateDateColumn() createdAt: Date; @UpdateDateColumn() updatedAt: Date; @OneToOne(() => VentureData, (venture) => venture.contact) Venture?: VentureData; }