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.
44 lines (32 loc) • 650 B
text/typescript
import {
Column,
CreateDateColumn,
Entity,
OneToOne,
PrimaryGeneratedColumn,
UpdateDateColumn,
} from "typeorm";
import { UserData } from "./user.data";
({ name: "user_contact" })
export class UserContactData {
("uuid")
id: string;
()
phoneNumber: string;
()
address: string;
()
facebookUrl: string;
()
linkedinUrl: string;
()
twitterUrl: string;
()
instagramUrl: string;
()
createdAt: Date;
()
updatedAt: Date;
(() => UserData, (user) => user.contact)
user?: UserData;
}