User

@Entity
@SoftDelete(columnName = "is_deleted")
class User(val id: Long = 0, var email: String, var name: String, var phone: String, var profileImage: String? = null, var password: String, var roles: MutableSet<UserRole> = mutableSetOf(UserRole.USER), var createdAt: Instant = Instant.now(), var updatedAt: Instant = Instant.now()) : AbstractAggregateRoot<User>

유저 엔티티

Constructors

Link copied to clipboard
constructor(id: Long = 0, email: String, name: String, phone: String, profileImage: String? = null, password: String, roles: MutableSet<UserRole> = mutableSetOf(UserRole.USER), createdAt: Instant = Instant.now(), updatedAt: Instant = Instant.now())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

유저 이메일

Link copied to clipboard
val id: Long = 0
Link copied to clipboard

유저 이름

Link copied to clipboard

유저 비밀번호

Link copied to clipboard

유저 핸드폰 번호

Link copied to clipboard

유저 프로필 이미지

Link copied to clipboard

유저 역할(권한)

Link copied to clipboard

Functions

Link copied to clipboard
fun addRole(role: UserRole)

계정 역할 부여