Added Event Module

This commit is contained in:
2026-01-30 11:44:54 +01:00
parent 1948ce58d3
commit e2335fdcf7
11 changed files with 192 additions and 30 deletions

View File

@@ -0,0 +1,33 @@
import { EventType } from "src/dto/event.dto";
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
@Entity()
export class EventEntity {
@PrimaryGeneratedColumn()
id: number;
@Column()
eventname: string;
@Column({ type: "date" })
datum: Date;
@Column({ type: "enum", enum: [EventType.fotos, EventType.html, EventType.markdown, EventType.link] })
type: EventType;
@Column()
content: string;
@Column()
minitext: string;
@Column({ nullable: true })
link:string;
@Column()
foto: string;
@Column({ nullable: true })
formular: number;
}