add sort to inspection point

This commit is contained in:
Julian Krauser 2025-05-28 17:13:39 +02:00
parent 2433120e26
commit e404989a28
2 changed files with 5 additions and 1 deletions

View file

@ -1,4 +1,4 @@
import { Column, Entity, ManyToOne, PrimaryGeneratedColumn } from "typeorm";
import { Column, Entity, ManyToOne, PrimaryGeneratedColumn, Unique } from "typeorm";
import { InspectionPointEnum } from "../../../enums/inspectionEnum";
import { inspectionVersionedPlan } from "./inspectionVersionedPlan";
@ -33,6 +33,9 @@ export class inspectionPoint {
@Column({ type: "int", nullable: true, default: null })
max: number;
@Column({ type: "int", default: 0 })
sort: number;
@Column()
versionedPlanId: string;