handover pdf
This commit is contained in:
17
api/src/model/dto/key-handover.dto.ts
Normal file
17
api/src/model/dto/key-handover.dto.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
export class KeyHandoverDto {
|
||||
handoverId!: string;
|
||||
handoverDate!: Date;
|
||||
place!: string;
|
||||
|
||||
giverName!: string;
|
||||
giverAddress?: string;
|
||||
|
||||
receiverName!: string;
|
||||
receiverAddress?: string;
|
||||
|
||||
keyType!: string;
|
||||
keyNumber?: string;
|
||||
quantity!: number;
|
||||
objectDescription?: string;
|
||||
notes?: string;
|
||||
}
|
||||
@@ -33,6 +33,10 @@ export class KeyHandout {
|
||||
@ManyToOne(() => User)
|
||||
user: User;
|
||||
|
||||
|
||||
@Column({ nullable: true })
|
||||
pdfFormKey: string;
|
||||
|
||||
@BeforeInsert()
|
||||
insertTimestamp() {
|
||||
if (this.timestamp == null) {
|
||||
|
||||
Reference in New Issue
Block a user