add service-types and cargo-types CRUD modules with pagination, filtering

This commit is contained in:
marshal
2026-05-28 11:58:04 +03:00
parent ae7b9c2750
commit 3b53042cf8
2 changed files with 5 additions and 5 deletions

View File

@@ -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;

View File

@@ -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;