1.0.4: customer fields extensions, tests

This commit is contained in:
Bossanyi Tibor
2020-07-05 13:50:28 +02:00
parent 2bd3f2232d
commit 6f570242e1
10 changed files with 91 additions and 28 deletions
@@ -43,6 +43,8 @@ object Singleton {
this.dbVersion = dbConfig.configValue
this.appVersion = applicationVersion
logger.info("DBVersion: " + this.dbVersion + " App version: " + this.appVersion)
if ( dbConfig.configValue != applicationVersion ) {
try {
@@ -10,7 +10,7 @@ data class Customer (
var name: String = "",
var firstname: String = "",
var email: String = "",
var age: Int = 0,
var age: Int? = 0,
var sex: String = "m",
var active: String = "N",
var dateAdd: String? = null,
@@ -18,7 +18,12 @@ data class Customer (
var dataPolicyAllowed: Int = 0,
var admin: Int = 0,
var password: String = "",
var birthYear:Int = 0,
var weight: Int = 0,
var goal: String? = null,
var fitnessLevel: String = "beginner",
var bodyType: String? = null,
@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
val customer_id: Long = 0
var customerId: Long = 0
)
@@ -12,7 +12,7 @@ data class Exercises (
@get: NonNull var exerciseTypeId: Long = 0,
@get: NonNull var customerId: Long = 0,
@get: NonNull var dateAdd: String? = null,
@get: NonNull var quantity: Int = 0,
@get: NonNull var quantity: Double? = null,
@get: Null var restTime: Int?, // in seconds
@get: NonNull var unit: String? = null,
@get: NonNull var unitQuantity: Double? = null,
+1 -1
View File
@@ -16,6 +16,6 @@ logging.config=classpath:logback-spring.xml
logging.file=logs
# if the database structure has been changed, increment this version number
application.version=0.0.3
application.version=1.0.4
jwt.secret=aitrainer