enable public report
This commit is contained in:
parent
8f563d1058
commit
41c3093754
21 changed files with 307 additions and 19 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue