generate crud for models
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
#Command
|
||||
@Extends(Command)
|
||||
CommandCreateKinosaal {
|
||||
name: string {} ;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
#Command
|
||||
@Extends(Command)
|
||||
CommandCreateKinosaalResponse {
|
||||
hall: Kinosaal {} ;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
#Command
|
||||
@Extends(Command)
|
||||
CommandDeleteKinosaal {
|
||||
hall: Kinosaal {} ;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
#Command
|
||||
@Extends(Command)
|
||||
CommandDeleteKinosaalResponse {
|
||||
hall: Kinosaal {} ;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
#Command
|
||||
@Extends(Command)
|
||||
CommandGetKinosaal {
|
||||
id: int {} ;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
#Command
|
||||
@Extends(Command)
|
||||
CommandGetKinosaalResponse {
|
||||
hall: Kinosaal {} ;
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
#Command
|
||||
@Extends(Command)
|
||||
CommandListKinosaal {
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
#Command
|
||||
@Extends(Command)
|
||||
CommandListKinosaalResponse {
|
||||
list: Kinosaal[] {} ;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
#Command
|
||||
@Extends(Command)
|
||||
CommandUpdateKinosaal {
|
||||
hall: Kinosaal {} ;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
#Command
|
||||
@Extends(Command)
|
||||
CommandUpdateKinosaalResponse {
|
||||
hall: Kinosaal {} ;
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#BaseModel
|
||||
Eintrittskarte {
|
||||
id: int { @Id @AutoIncremented } ;
|
||||
id: int { @Id @AutoIncremented @ObjectType } ;
|
||||
show: Vorstellung { } ;
|
||||
seat: Sitzplatz { } ;
|
||||
code: string { @Unique } ;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#BaseModel
|
||||
Film {
|
||||
id: int { @Id @AutoIncremented } ;
|
||||
id: int { @Id @AutoIncremented @ObjectType } ;
|
||||
title: string { @NotNull } ;
|
||||
description: string { @NotNull } ;
|
||||
duration: int { @NotNull } ;
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
#BaseModel
|
||||
Filmkategorie {
|
||||
id: int { @Id @AutoIncremented } ;
|
||||
id: int { @Id @AutoIncremented @ObjectType } ;
|
||||
name: string { @NotNull @Unique } ;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
#BaseModel
|
||||
Kartenstatus {
|
||||
id: int { @Id @AutoIncremented } ;
|
||||
id: int { @Id @AutoIncremented @ObjectType } ;
|
||||
name: string { @NotNull @Unique } ;
|
||||
}
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
#BaseModel
|
||||
Kinosaal {
|
||||
id : int { @Id @AutoIncremented } ;
|
||||
id : int { @Id @AutoIncremented @ObjectType } ;
|
||||
name : string { @NotNull @Unique } ;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
#BaseModel
|
||||
Sitzkategorie {
|
||||
id: int { @Id @AutoIncremented } ;
|
||||
id: int { @Id @AutoIncremented @ObjectType } ;
|
||||
name: string { @NotNull @Unique } ;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#BaseModel
|
||||
Sitzplatz {
|
||||
id: int { @Id @AutoIncremented } ;
|
||||
id: int { @Id @AutoIncremented @ObjectType } ;
|
||||
row: Sitzreihe { } ;
|
||||
position: int { @NotNull } ;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#BaseModel
|
||||
Sitzreihe {
|
||||
id: int { @Id @AutoIncremented } ;
|
||||
id: int { @Id @AutoIncremented @ObjectType } ;
|
||||
hall: Kinosaal { } ;
|
||||
position: int { @NotNull } ;
|
||||
category: Sitzkategorie { } ;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#BaseModel
|
||||
Vorstellung {
|
||||
id: int { @Id @AutoIncremented } ;
|
||||
id: int { @Id @AutoIncremented @ObjectType } ;
|
||||
hall: Kinosaal { } ;
|
||||
movie: Film { } ;
|
||||
start: date { @NotNull } ;
|
||||
|
||||
Reference in New Issue
Block a user