mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 00:52:50 +00:00
add service-types and cargo-types CRUD modules with pagination, filtering
This commit is contained in:
@@ -2,9 +2,9 @@ import { BaseEntity } from "@edr/api-common";
|
||||
import { Column, Entity, Index, ManyToOne, OneToMany, JoinColumn } from "typeorm";
|
||||
|
||||
@Entity({ schema: "freight", name: "cargo_types" })
|
||||
@Index(["is_active"])
|
||||
@Index(["display_order"])
|
||||
@Index(["parent_group_id"])
|
||||
@Index(["isActive"])
|
||||
@Index(["displayOrder"])
|
||||
@Index(["parentGroupId"])
|
||||
export class CargoType extends BaseEntity {
|
||||
@Column({ name: "cargo_type_name", type: "varchar", length: 255, nullable: false })
|
||||
cargoTypeName!: string;
|
||||
|
||||
@@ -2,8 +2,8 @@ import { BaseEntity } from "@edr/api-common";
|
||||
import { Column, Entity, Index } from "typeorm";
|
||||
|
||||
@Entity({ schema: "freight", name: "service_types" })
|
||||
@Index(["is_active"])
|
||||
@Index(["display_order"])
|
||||
@Index(["isActive"])
|
||||
@Index(["displayOrder"])
|
||||
export class ServiceType extends BaseEntity {
|
||||
@Column({ name: "service_name", type: "varchar", length: 255, nullable: false })
|
||||
serviceName!: string;
|
||||
|
||||
Reference in New Issue
Block a user