- Move files into components (article) - Split articles routes - Refactoring for remove ktor-voter (ArticleVoter) - Remove mutability - Move DataConversion to separate file (Converter.kt) - Add Schemas for Articles routes - Fix SQL Query for Workgroup roles - rename container_name in docker-compose
17 lines
389 B
Kotlin
17 lines
389 B
Kotlin
package fr.dcproject.entity
|
|
|
|
import fr.postgresjson.entity.EntityI
|
|
import fr.postgresjson.entity.EntityUpdatedAt
|
|
import fr.postgresjson.entity.EntityUpdatedAtImp
|
|
|
|
open class VoteAggregation(
|
|
val up: Int,
|
|
val neutral: Int,
|
|
val down: Int,
|
|
val total: Int,
|
|
val score: Int
|
|
) : EntityI,
|
|
EntityUpdatedAt by EntityUpdatedAtImp() {
|
|
constructor() : this(0, 0, 0, 0, 0)
|
|
}
|