#68 Clean workgroup Entity

This commit is contained in:
2021-03-02 22:27:51 +01:00
parent bc772f168f
commit 4c00095118
10 changed files with 76 additions and 72 deletions

View File

@@ -20,10 +20,11 @@ class UserForCreate(
open class User(
id: UUID = UUID.randomUUID(),
var username: String,
override var username: String,
var blockedAt: DateTime? = null,
var roles: List<Roles> = emptyList()
) : UserRef(id),
UserWithUsername,
CreatedAt by CreatedAt.Imp(),
UpdatedAt by UpdatedAt.Imp()
@@ -32,12 +33,11 @@ class UserCreator(
override val username: String,
) : UserRef(id), UserWithUsername
interface UserWithUsername {
interface UserWithUsername : UserI {
val username: String
}
interface UserWithPasswordI {
val id: UUID
interface UserWithPasswordI : UserI {
val password: String
}