14 lines
271 B
TypeScript
14 lines
271 B
TypeScript
|
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;
|
||
|
}
|