Lost Keys

This commit is contained in:
Bastian Wagner
2025-01-03 13:39:47 +01:00
parent c8c2ee18cb
commit 92f0c10bd8
35 changed files with 569 additions and 42 deletions

View File

@@ -29,8 +29,11 @@ export class Key implements IKey {
@Column({ name: 'handed_out', default: false })
handedOut: boolean;
@Column({ name: 'lost', default: false })
keyLost: boolean;
@Column({ name: 'lost', default: null })
keyLost: Date;
@Column({ name: 'is_digital', default: false })
digital: boolean;
@ManyToMany(() => Cylinder, (cylinder) => cylinder.keys)
@JoinTable()