init
This commit is contained in:
@@ -1,25 +1,24 @@
|
||||
package space.luminic.finance.models
|
||||
|
||||
|
||||
import org.springframework.data.annotation.Id
|
||||
import org.springframework.data.mongodb.core.mapping.Document
|
||||
import org.springframework.data.annotation.Transient
|
||||
import org.springframework.data.annotation.CreatedDate
|
||||
import org.springframework.data.annotation.LastModifiedDate
|
||||
import java.time.Instant
|
||||
import java.time.LocalDate
|
||||
import java.time.LocalDateTime
|
||||
|
||||
@Document("users")
|
||||
|
||||
data class User(
|
||||
@Id
|
||||
var id: String? = null,
|
||||
var id: Int? = null,
|
||||
val username: String,
|
||||
var firstName: String,
|
||||
var tgId: String? = null,
|
||||
var tgUserName: String? = null,
|
||||
var password: String,
|
||||
var password: String? = null,
|
||||
var isActive: Boolean = true,
|
||||
var regDate: LocalDate = LocalDate.now(),
|
||||
val createdAt: LocalDateTime = LocalDateTime.now(),
|
||||
var roles: MutableList<String> = mutableListOf(),
|
||||
@CreatedDate val createdAt: Instant? = null,
|
||||
@LastModifiedDate var updatedAt: Instant? = null,
|
||||
var roles: List<String> = listOf(),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user