ff-admin-server/src/entity/club/protocol/protocol.ts

23 lines
475 B
TypeScript
Raw Normal View History

2024-10-03 13:31:05 +02:00
import { Column, Entity, PrimaryColumn } from "typeorm";
@Entity()
export class protocol {
@PrimaryColumn({ generated: "increment", type: "int" })
id: number;
2025-01-28 11:09:42 +01:00
@Column({ type: "varchar", length: 255, unique: true })
2024-10-03 13:31:05 +02:00
title: string;
@Column({ type: "date" })
date: Date;
2024-10-04 12:47:13 +02:00
2024-10-29 15:23:22 +01:00
@Column({ type: "time", nullable: true })
2024-10-04 12:47:13 +02:00
starttime: Date;
2024-10-29 15:23:22 +01:00
@Column({ type: "time", nullable: true })
2024-10-04 12:47:13 +02:00
endtime: Date;
2024-10-14 17:03:33 +02:00
@Column({ type: "text", nullable: true })
2024-10-04 12:47:13 +02:00
summary: string;
2024-10-03 13:31:05 +02:00
}