get protocol item
This commit is contained in:
parent
72fb6fbc20
commit
5c4e521bd8
10 changed files with 155 additions and 3 deletions
13
src/entity/protocol.ts
Normal file
13
src/entity/protocol.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { Column, Entity, PrimaryColumn } from "typeorm";
|
||||
|
||||
@Entity()
|
||||
export class protocol {
|
||||
@PrimaryColumn({ generated: "increment", type: "int" })
|
||||
id: number;
|
||||
|
||||
@Column({ type: "varchar", length: 255 })
|
||||
title: string;
|
||||
|
||||
@Column({ type: "date" })
|
||||
date: Date;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue