2024-10-03 11:31:05 +00:00
|
|
|
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;
|
2024-10-04 10:47:13 +00:00
|
|
|
|
2024-10-29 14:23:22 +00:00
|
|
|
@Column({ type: "time", nullable: true })
|
2024-10-04 10:47:13 +00:00
|
|
|
starttime: Date;
|
|
|
|
|
2024-10-29 14:23:22 +00:00
|
|
|
@Column({ type: "time", nullable: true })
|
2024-10-04 10:47:13 +00:00
|
|
|
endtime: Date;
|
|
|
|
|
2024-10-14 15:03:33 +00:00
|
|
|
@Column({ type: "text", nullable: true })
|
2024-10-04 10:47:13 +00:00
|
|
|
summary: string;
|
2024-10-03 11:31:05 +00:00
|
|
|
}
|