toggle menu
piper-kt
9.3.0
jvm
switch theme
search in API
users-service
/
piperkt.services.users.infrastructure.persistence.model
/
UserEntity
User
Entity
@
MappedEntity
data
class
UserEntity
(
@
Id
val
id
:
String
?
=
null
,
val
username
:
String
,
val
password
:
String
,
val
email
:
String
?
=
null
,
val
description
:
String
?
=
null
,
val
profilePicture
:
String
?
=
null
,
val
refreshToken
:
String
?
=
null
)
User entity.
Members
Members & Extensions
Constructors
User
Entity
Link copied to clipboard
constructor
(
@
Id
id
:
String
?
=
null
,
username
:
String
,
password
:
String
,
email
:
String
?
=
null
,
description
:
String
?
=
null
,
profilePicture
:
String
?
=
null
,
refreshToken
:
String
?
=
null
)
Properties
description
Link copied to clipboard
val
description
:
String
?
=
null
email
Link copied to clipboard
val
email
:
String
?
=
null
id
Link copied to clipboard
@
GeneratedValue
val
id
:
String
?
=
null
password
Link copied to clipboard
val
password
:
String
profile
Picture
Link copied to clipboard
val
profilePicture
:
String
?
=
null
refresh
Token
Link copied to clipboard
val
refreshToken
:
String
?
=
null
username
Link copied to clipboard
val
username
:
String
Functions
to
Domain
Link copied to clipboard
fun
UserEntity
.
toDomain
(
)
:
User
Convert a user entity to a user.