change according to connection from frontend
This commit is contained in:
parent
2609ecc1bf
commit
e3db523a0e
36 changed files with 611 additions and 173 deletions
|
@ -18,10 +18,10 @@ export class equipment {
|
|||
@Column({ type: "varchar", length: 255 })
|
||||
location: string;
|
||||
|
||||
@Column({ type: getTypeByORM("datetime").type as ColumnType })
|
||||
@Column({ type: getTypeByORM("date").type as ColumnType })
|
||||
commissioned: Date;
|
||||
|
||||
@Column({ type: getTypeByORM("datetime").type as ColumnType, nullable: true, default: null })
|
||||
@Column({ type: getTypeByORM("date").type as ColumnType, nullable: true, default: null })
|
||||
decommissioned?: Date;
|
||||
|
||||
@Column()
|
||||
|
|
|
@ -16,6 +16,6 @@ export class equipmentType {
|
|||
@OneToMany(() => equipment, (e) => e.equipmentType, { cascade: ["insert"] })
|
||||
equipment: equipment[];
|
||||
|
||||
@OneToMany(() => inspectionPlan, (ip) => ip.equipment)
|
||||
@OneToMany(() => inspectionPlan, (ip) => ip.equipmentType)
|
||||
inspectionPlans: inspectionPlan[];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue