update model for commands
This commit is contained in:
4
TelosysTools/models/InfiniMotion/Command.entity
Normal file
4
TelosysTools/models/InfiniMotion/Command.entity
Normal file
@@ -0,0 +1,4 @@
|
||||
@Abstract
|
||||
#Command
|
||||
Command {
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
#Command
|
||||
@Extends(Command)
|
||||
CommandCreateKinosaal {
|
||||
name: string {} ;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
#Command
|
||||
@Extends(Command)
|
||||
CommandCreateKinosaalResponse {
|
||||
hall: Kinosaal {} ;
|
||||
}
|
||||
5
TelosysTools/models/InfiniMotion/CommandException.entity
Normal file
5
TelosysTools/models/InfiniMotion/CommandException.entity
Normal file
@@ -0,0 +1,5 @@
|
||||
#Command
|
||||
@Extends(Command)
|
||||
CommandException {
|
||||
exception: string { } ;
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
#Command
|
||||
@Extends(Command)
|
||||
CommandListKinosaal {
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
#Command
|
||||
@Extends(Command)
|
||||
CommandListKinosaalResponse {
|
||||
list: Kinosaal[] {} ;
|
||||
}
|
||||
7
TelosysTools/models/InfiniMotion/CommandWrapper.entity
Normal file
7
TelosysTools/models/InfiniMotion/CommandWrapper.entity
Normal file
@@ -0,0 +1,7 @@
|
||||
#Command
|
||||
CommandWrapper {
|
||||
transaction: string { } ; // Random Transaction ID
|
||||
request: string {} ; // Random Request ID
|
||||
type: string {} ; // Command Type
|
||||
payload: binary {} ;
|
||||
}
|
||||
@@ -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 { } ;
|
||||
}
|
||||
|
||||
@@ -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 { } ;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Entity Filmkategorie
|
||||
|
||||
#BaseModel
|
||||
Filmkategorie {
|
||||
id: int { @Id @AutoIncremented } ;
|
||||
name: string {} ;
|
||||
name: string { @NotNull @Unique } ;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Entity Kartenstatus
|
||||
|
||||
#BaseModel
|
||||
Kartenstatus {
|
||||
id: int { @Id @AutoIncremented } ;
|
||||
name: string {} ;
|
||||
name: string { @NotNull @Unique } ;
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
// Entity Kinosaal
|
||||
|
||||
#BaseModel
|
||||
Kinosaal {
|
||||
id : int { @Id @AutoIncremented } ;
|
||||
name : string {} ;
|
||||
name : string { @NotNull @Unique } ;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Entity Sitzkategorie
|
||||
|
||||
#BaseModel
|
||||
Sitzkategorie {
|
||||
id: int { @Id @AutoIncremented } ;
|
||||
name: string { } ;
|
||||
name: string { @NotNull @Unique } ;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
// Entity Sitzplatz
|
||||
|
||||
#BaseModel
|
||||
Sitzplatz {
|
||||
id: int { @Id @AutoIncremented } ;
|
||||
row: Sitzreihe {} ;
|
||||
position: int {} ;
|
||||
row: Sitzreihe { } ;
|
||||
position: int { @NotNull } ;
|
||||
}
|
||||
|
||||
@@ -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 { } ;
|
||||
}
|
||||
|
||||
@@ -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 } ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user