Package com.soulfiremc.server.database
Class UserEntity
java.lang.Object
com.soulfiremc.server.database.UserEntity
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull UserEntity
auditLogs
(List<InstanceAuditLogEntity> auditLogs) @NotNull UserEntity
email()
@NotNull UserEntity
id()
@NotNull UserEntity
@Nullable Instant
@NotNull UserEntity
lastLoginAt
(@Nullable Instant lastLoginAt) @NotNull UserEntity
minIssuedAt
(Instant minIssuedAt) @NotNull UserEntity
ownedInstances
(List<InstanceEntity> ownedInstances) role()
@NotNull UserEntity
role
(UserEntity.Role role) @NotNull UserEntity
username()
@NotNull UserEntity
long
version()
@NotNull UserEntity
version
(long version)
-
Constructor Details
-
UserEntity
public UserEntity()
-
-
Method Details
-
id
-
username
-
email
-
role
-
ownedInstances
-
auditLogs
-
createdAt
-
updatedAt
-
lastLoginAt
-
minIssuedAt
-
version
public long version() -
id
- Returns:
this
.
-
username
- Returns:
this
.
-
email
- Returns:
this
.
-
role
- Returns:
this
.
-
ownedInstances
- Returns:
this
.
-
auditLogs
- Returns:
this
.
-
createdAt
- Returns:
this
.
-
updatedAt
- Returns:
this
.
-
lastLoginAt
- Returns:
this
.
-
minIssuedAt
- Returns:
this
.
-
version
- Returns:
this
.
-