generate crud for models

This commit is contained in:
2025-10-26 00:04:02 +02:00
parent 17b6f4bb62
commit aa5673bae1
59 changed files with 564 additions and 79 deletions

View File

@@ -1,5 +0,0 @@
#Command
@Extends(Command)
CommandCreateKinosaal {
name: string {} ;
}

View File

@@ -1,5 +0,0 @@
#Command
@Extends(Command)
CommandCreateKinosaalResponse {
hall: Kinosaal {} ;
}

View File

@@ -1,5 +0,0 @@
#Command
@Extends(Command)
CommandDeleteKinosaal {
hall: Kinosaal {} ;
}

View File

@@ -1,5 +0,0 @@
#Command
@Extends(Command)
CommandDeleteKinosaalResponse {
hall: Kinosaal {} ;
}

View File

@@ -1,5 +0,0 @@
#Command
@Extends(Command)
CommandGetKinosaal {
id: int {} ;
}

View File

@@ -1,5 +0,0 @@
#Command
@Extends(Command)
CommandGetKinosaalResponse {
hall: Kinosaal {} ;
}

View File

@@ -1,4 +0,0 @@
#Command
@Extends(Command)
CommandListKinosaal {
}

View File

@@ -1,5 +0,0 @@
#Command
@Extends(Command)
CommandListKinosaalResponse {
list: Kinosaal[] {} ;
}

View File

@@ -1,5 +0,0 @@
#Command
@Extends(Command)
CommandUpdateKinosaal {
hall: Kinosaal {} ;
}

View File

@@ -1,5 +0,0 @@
#Command
@Extends(Command)
CommandUpdateKinosaalResponse {
hall: Kinosaal {} ;
}

View File

@@ -2,7 +2,7 @@
#BaseModel
Eintrittskarte {
id: int { @Id @AutoIncremented } ;
id: int { @Id @AutoIncremented @ObjectType } ;
show: Vorstellung { } ;
seat: Sitzplatz { } ;
code: string { @Unique } ;

View File

@@ -2,7 +2,7 @@
#BaseModel
Film {
id: int { @Id @AutoIncremented } ;
id: int { @Id @AutoIncremented @ObjectType } ;
title: string { @NotNull } ;
description: string { @NotNull } ;
duration: int { @NotNull } ;

View File

@@ -2,6 +2,6 @@
#BaseModel
Filmkategorie {
id: int { @Id @AutoIncremented } ;
id: int { @Id @AutoIncremented @ObjectType } ;
name: string { @NotNull @Unique } ;
}

View File

@@ -2,6 +2,6 @@
#BaseModel
Kartenstatus {
id: int { @Id @AutoIncremented } ;
id: int { @Id @AutoIncremented @ObjectType } ;
name: string { @NotNull @Unique } ;
}

View File

@@ -2,6 +2,6 @@
#BaseModel
Kinosaal {
id : int { @Id @AutoIncremented } ;
id : int { @Id @AutoIncremented @ObjectType } ;
name : string { @NotNull @Unique } ;
}

View File

@@ -2,6 +2,6 @@
#BaseModel
Sitzkategorie {
id: int { @Id @AutoIncremented } ;
id: int { @Id @AutoIncremented @ObjectType } ;
name: string { @NotNull @Unique } ;
}

View File

@@ -2,7 +2,7 @@
#BaseModel
Sitzplatz {
id: int { @Id @AutoIncremented } ;
id: int { @Id @AutoIncremented @ObjectType } ;
row: Sitzreihe { } ;
position: int { @NotNull } ;
}

View File

@@ -2,7 +2,7 @@
#BaseModel
Sitzreihe {
id: int { @Id @AutoIncremented } ;
id: int { @Id @AutoIncremented @ObjectType } ;
hall: Kinosaal { } ;
position: int { @NotNull } ;
category: Sitzkategorie { } ;

View File

@@ -2,7 +2,7 @@
#BaseModel
Vorstellung {
id: int { @Id @AutoIncremented } ;
id: int { @Id @AutoIncremented @ObjectType } ;
hall: Kinosaal { } ;
movie: Film { } ;
start: date { @NotNull } ;