fix statistics

This commit is contained in:
2025-11-19 00:19:49 +01:00
parent 32dcd47131
commit c19d8540fa
9 changed files with 17 additions and 31 deletions

View File

@@ -1,4 +1,6 @@
#Command
@Extends(Command)
CommandListStatistics {
movies: boolean { @NotNull };
shows: boolean { @NotNull };
}

View File

@@ -2,7 +2,8 @@
#Statistics
StatisticsFilm {
movie: Film {};
tickets: Eintrittskarte[] {};
movieId: int { @NotNull };
movieTitle: string { @NotNull };
tickets: int { @NotNull };
earnings: int { @NotNull };
}

View File

@@ -1,8 +0,0 @@
// Entity StatisticsFilmReduced
#AddonModel
StatisticsFilmReduced {
movie: Film {};
tickets: int { @NotNull };
earnings: int { @NotNull };
}

View File

@@ -1,7 +0,0 @@
// Entity OmdbMovie
#AddonModel
StatisticsReduced {
movies: StatisticsFilmReduced[] {};
shows: StatisticsVorstellungReduced[] {};
}

View File

@@ -2,7 +2,10 @@
#Statistics
StatisticsVorstellung {
show: Vorstellung { };
tickets: Eintrittskarte[] { };
showId: int { @NotNull };
showHallName: string { @NotNull };
showStart: timestamp { @NotNull };
movieTitle: string { @NotNull };
tickets: int { @NotNull };
earnings: int { @NotNull };
}

View File

@@ -1,8 +0,0 @@
// Entity StatisticsVorstellungReduced
#AddonModel
StatisticsVorstellungReduced {
show: Vorstellung {} ;
tickets: int { @NotNull };
earnings: int { @NotNull };
}

View File

@@ -22,7 +22,7 @@ ENTITY_PKG=de.infinimotion.model.bean
ProjectVariable.MAVEN_ARTIFACT_ID=model
ProjectVariable.MAVEN_GROUP_ID=de.infinimotion
ProjectVariable.PROJECT_NAME=infinimodel
ProjectVariable.PROJECT_VERSION=0.0.110
ProjectVariable.PROJECT_VERSION=0.0.116
ProjectVariable.REST_SERVER_PORT=3000
ProjectVariable.REST_API_ROOT=/api/v1
ProjectVariable.REST_URL_ROOT=http://localhost:3000

View File

@@ -15,12 +15,14 @@
"author": "Lennart Heinrich",
"license": "ISC",
"devDependencies": {
"@types/node": "^24.8.0",
"@types/node": "^24.10.1",
"ts-node": "^10.9.2",
"tsup": "^8.5.0",
"tsup": "^8.5.1",
"typescript": "^5.9.3"
},
"repository": "https://github.com/InfiniMotion/model.git",
"repository": {
"url": "https://github.com/InfiniMotion/model.git"
},
"publishConfig": {
"registry": "https://git.infinimotion.de/api/packages/infinimotion/npm/"
}

View File

@@ -9,6 +9,7 @@
*/
package ${target.javaPackageFromFolder("persistence/${SRC}")};
import java.time.LocalDateTime;
import java.util.List;
import io.quarkus.mongodb.panache.PanacheMongoEntity;