Files
edr-platform/apps/edr-passenger-api/src/modules/stations/entities/station.entity.ts
Michael Abebe 1c5ee19388 chore: fmt
2026-05-12 16:50:18 +03:00

36 lines
768 B
TypeScript

import { BaseEntity } from "@edr/api-common";
import { Column, Entity } from "typeorm";
@Entity({ name: "stations" })
export class Station extends BaseEntity {
@Column({ name: "code", type: "varchar", length: 16, unique: true })
code!: string;
@Column({ name: "name", type: "varchar", length: 128 })
name!: string;
@Column({ name: "city", type: "varchar", length: 128 })
city!: string;
@Column({ name: "country", type: "varchar", length: 64 })
country!: string;
@Column({
name: "latitude",
type: "numeric",
precision: 9,
scale: 6,
nullable: true,
})
latitude?: number | null;
@Column({
name: "longitude",
type: "numeric",
precision: 9,
scale: 6,
nullable: true,
})
longitude?: number | null;
}