update model for commands

This commit is contained in:
2025-10-18 00:50:58 +02:00
parent 99ccd6f863
commit 53a6fdf775
27 changed files with 427 additions and 72 deletions

View File

@@ -0,0 +1,4 @@
@Abstract
#Command
Command {
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,7 @@
#Command
CommandWrapper {
transaction: string { } ; // Random Transaction ID
request: string {} ; // Random Request ID
type: string {} ; // Command Type
payload: binary {} ;
}

View File

@@ -1,9 +1,10 @@
// Entity Eintrittskarte
#BaseModel
Eintrittskarte {
id: int { @Id @AutoIncremented } ;
show: Vorstellung {} ;
seat: Sitzplatz {} ;
code: string {} ;
state: Kartenstatus {} ;
show: Vorstellung { } ;
seat: Sitzplatz { } ;
code: string { @Unique } ;
state: Kartenstatus { } ;
}

View File

@@ -1,11 +1,12 @@
// Entity Film
#BaseModel
Film {
id: int { @Id @AutoIncremented } ;
title: string {} ;
description: string {} ;
duration: int {} ;
image: string {} ;
rating: short {} ;
category: Filmkategorie {} ;
title: string { @NotNull } ;
description: string { @NotNull } ;
duration: int { @NotNull } ;
image: string { @NotNull } ;
rating: short { } ;
category: Filmkategorie { } ;
}

View File

@@ -1,6 +1,7 @@
// Entity Filmkategorie
#BaseModel
Filmkategorie {
id: int { @Id @AutoIncremented } ;
name: string {} ;
name: string { @NotNull @Unique } ;
}

View File

@@ -1,6 +1,7 @@
// Entity Kartenstatus
#BaseModel
Kartenstatus {
id: int { @Id @AutoIncremented } ;
name: string {} ;
name: string { @NotNull @Unique } ;
}

View File

@@ -1,6 +1,7 @@
// Entity Kinosaal
#BaseModel
Kinosaal {
id : int { @Id @AutoIncremented } ;
name : string {} ;
name : string { @NotNull @Unique } ;
}

View File

@@ -1,6 +1,7 @@
// Entity Sitzkategorie
#BaseModel
Sitzkategorie {
id: int { @Id @AutoIncremented } ;
name: string { } ;
name: string { @NotNull @Unique } ;
}

View File

@@ -1,7 +1,8 @@
// Entity Sitzplatz
#BaseModel
Sitzplatz {
id: int { @Id @AutoIncremented } ;
row: Sitzreihe {} ;
position: int {} ;
row: Sitzreihe { } ;
position: int { @NotNull } ;
}

View File

@@ -1,8 +1,9 @@
// Entity Sitzreihe
#BaseModel
Sitzreihe {
id: int { @Id @AutoIncremented } ;
hall: Kinosaal {} ;
position: int {} ;
category: Sitzkategorie {} ;
hall: Kinosaal { } ;
position: int { @NotNull } ;
category: Sitzkategorie { } ;
}

View File

@@ -1,8 +1,9 @@
// Entity Vorstellung
#BaseModel
Vorstellung {
id: int { @Id @AutoIncremented } ;
hall: Kinosaal {} ;
movie: Film {} ;
start: date {} ;
hall: Kinosaal { } ;
movie: Film { } ;
start: date { @NotNull } ;
}