printout
This commit is contained in:
parent
58213923e5
commit
9da2a98f55
12 changed files with 341 additions and 54 deletions
30
src/entity/protocolPrintout.ts
Normal file
30
src/entity/protocolPrintout.ts
Normal file
|
@ -0,0 +1,30 @@
|
|||
import { Column, CreateDateColumn, Entity, ManyToOne, PrimaryGeneratedColumn } from "typeorm";
|
||||
import { protocol } from "./protocol";
|
||||
|
||||
@Entity()
|
||||
export class protocolPrintout {
|
||||
@PrimaryGeneratedColumn("increment")
|
||||
id: number;
|
||||
|
||||
@Column({ type: "varchar", length: 255 })
|
||||
title: string;
|
||||
|
||||
@Column({ type: "int" })
|
||||
iteration: number;
|
||||
|
||||
@Column({ type: "varchar", length: 255 })
|
||||
filename: string;
|
||||
|
||||
@CreateDateColumn()
|
||||
createdAt: Date;
|
||||
|
||||
@Column()
|
||||
protocolId: number;
|
||||
|
||||
@ManyToOne(() => protocol, {
|
||||
nullable: false,
|
||||
onDelete: "CASCADE",
|
||||
onUpdate: "RESTRICT",
|
||||
})
|
||||
protocol: protocol;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue