fix statistics
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
#Command
|
#Command
|
||||||
@Extends(Command)
|
@Extends(Command)
|
||||||
CommandListStatistics {
|
CommandListStatistics {
|
||||||
|
movies: boolean { @NotNull };
|
||||||
|
shows: boolean { @NotNull };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
#Statistics
|
#Statistics
|
||||||
StatisticsFilm {
|
StatisticsFilm {
|
||||||
movie: Film {};
|
movieId: int { @NotNull };
|
||||||
tickets: Eintrittskarte[] {};
|
movieTitle: string { @NotNull };
|
||||||
|
tickets: int { @NotNull };
|
||||||
earnings: int { @NotNull };
|
earnings: int { @NotNull };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
// Entity StatisticsFilmReduced
|
|
||||||
|
|
||||||
#AddonModel
|
|
||||||
StatisticsFilmReduced {
|
|
||||||
movie: Film {};
|
|
||||||
tickets: int { @NotNull };
|
|
||||||
earnings: int { @NotNull };
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
// Entity OmdbMovie
|
|
||||||
|
|
||||||
#AddonModel
|
|
||||||
StatisticsReduced {
|
|
||||||
movies: StatisticsFilmReduced[] {};
|
|
||||||
shows: StatisticsVorstellungReduced[] {};
|
|
||||||
}
|
|
||||||
@@ -2,7 +2,10 @@
|
|||||||
|
|
||||||
#Statistics
|
#Statistics
|
||||||
StatisticsVorstellung {
|
StatisticsVorstellung {
|
||||||
show: Vorstellung { };
|
showId: int { @NotNull };
|
||||||
tickets: Eintrittskarte[] { };
|
showHallName: string { @NotNull };
|
||||||
|
showStart: timestamp { @NotNull };
|
||||||
|
movieTitle: string { @NotNull };
|
||||||
|
tickets: int { @NotNull };
|
||||||
earnings: int { @NotNull };
|
earnings: int { @NotNull };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
// Entity StatisticsVorstellungReduced
|
|
||||||
|
|
||||||
#AddonModel
|
|
||||||
StatisticsVorstellungReduced {
|
|
||||||
show: Vorstellung {} ;
|
|
||||||
tickets: int { @NotNull };
|
|
||||||
earnings: int { @NotNull };
|
|
||||||
}
|
|
||||||
@@ -22,7 +22,7 @@ ENTITY_PKG=de.infinimotion.model.bean
|
|||||||
ProjectVariable.MAVEN_ARTIFACT_ID=model
|
ProjectVariable.MAVEN_ARTIFACT_ID=model
|
||||||
ProjectVariable.MAVEN_GROUP_ID=de.infinimotion
|
ProjectVariable.MAVEN_GROUP_ID=de.infinimotion
|
||||||
ProjectVariable.PROJECT_NAME=infinimodel
|
ProjectVariable.PROJECT_NAME=infinimodel
|
||||||
ProjectVariable.PROJECT_VERSION=0.0.110
|
ProjectVariable.PROJECT_VERSION=0.0.116
|
||||||
ProjectVariable.REST_SERVER_PORT=3000
|
ProjectVariable.REST_SERVER_PORT=3000
|
||||||
ProjectVariable.REST_API_ROOT=/api/v1
|
ProjectVariable.REST_API_ROOT=/api/v1
|
||||||
ProjectVariable.REST_URL_ROOT=http://localhost:3000
|
ProjectVariable.REST_URL_ROOT=http://localhost:3000
|
||||||
|
|||||||
@@ -15,12 +15,14 @@
|
|||||||
"author": "Lennart Heinrich",
|
"author": "Lennart Heinrich",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^24.8.0",
|
"@types/node": "^24.10.1",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
"tsup": "^8.5.0",
|
"tsup": "^8.5.1",
|
||||||
"typescript": "^5.9.3"
|
"typescript": "^5.9.3"
|
||||||
},
|
},
|
||||||
"repository": "https://github.com/InfiniMotion/model.git",
|
"repository": {
|
||||||
|
"url": "https://github.com/InfiniMotion/model.git"
|
||||||
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"registry": "https://git.infinimotion.de/api/packages/infinimotion/npm/"
|
"registry": "https://git.infinimotion.de/api/packages/infinimotion/npm/"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
package ${target.javaPackageFromFolder("persistence/${SRC}")};
|
package ${target.javaPackageFromFolder("persistence/${SRC}")};
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import io.quarkus.mongodb.panache.PanacheMongoEntity;
|
import io.quarkus.mongodb.panache.PanacheMongoEntity;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user