echadospalante-domain
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.
23 lines (22 loc) • 544 B
TypeScript
import { EventLocation } from "../events";
import { User } from "../user";
import { VentureLocation } from "../ventures/location";
export interface Department {
id: number;
name: string;
municipalities: Municipality[];
createdAt: Date;
updatedAt: Date;
}
export interface Municipality {
id: number;
name: string;
department: Department;
lat: number;
lng: number;
ventureLocations: VentureLocation[];
eventLocations: EventLocation[];
users: User[];
createdAt: Date;
updatedAt: Date;
}