enable public report

This commit is contained in:
Julian Krauser 2025-07-16 12:24:50 +02:00
parent 8f563d1058
commit 41c3093754
21 changed files with 307 additions and 19 deletions

View file

@ -21,12 +21,28 @@ export class damageReport {
@Column({ type: "text" })
description: string;
@Column({ type: "text" })
location: string;
@Column({ type: "text" })
note: string;
@Column({
type: "text",
transformer: {
from(value: string): Array<string> {
return value.split(",");
},
to(value: Array<string>): string {
return value.join(",");
},
},
})
images: string[];
@Column({ type: "varchar", length: 255 })
reportedBy: string;
@Column({ type: "int", default: 0 })
imageCount: number;
@Column({ nullable: true, default: null })
equipmentId?: string;