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) • 525 B
text/typescript
import {
Column,
CreateDateColumn,
Entity,
OneToMany,
PrimaryGeneratedColumn,
UpdateDateColumn,
} from "typeorm";
import { MunicipalityData } from "./municipality.data";
({
name: "department",
})
export class DepartmentData {
()
id: number;
()
name: string;
()
createdAt: Date;
()
updatedAt: Date;
(() => MunicipalityData, (municipality) => municipality.department)
municipalities: MunicipalityData[];
}