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.
36 lines (28 loc) • 726 B
text/typescript
import {
Column,
CreateDateColumn,
Entity,
JoinColumn,
ManyToOne,
OneToMany,
PrimaryGeneratedColumn,
UpdateDateColumn,
} from "typeorm";
import { DepartmentData } from "./department.data";
import { UserDetailData } from "./user-detail.data";
({ name: "municipality" })
export class MunicipalityData {
()
id: number;
()
name: string;
()
createdAt: Date;
()
updatedAt: Date;
(() => DepartmentData, (department) => department.municipalities)
({ name: "departmentId" })
department: DepartmentData;
(() => UserDetailData, (ud) => ud.municipality)
userDetails: UserDetailData[];
}