aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/net/elytrium/limboauth/model
diff options
context:
space:
mode:
authorPetr Ilin <hevav@hevav.dev>2022-12-23 02:36:45 +0300
committerPetr Ilin <hevav@hevav.dev>2022-12-23 02:36:45 +0300
commit206fedfd8765987da659f4b9ef6bcee78a79f3a2 (patch)
tree59ed0af1d7e81479f20ce7e60e0dd52f83f535cd /src/main/java/net/elytrium/limboauth/model
parentc46ba522e726c945bfdb57fe26126072e6adf142 (diff)
downloadLimboAuth-206fedfd8765987da659f4b9ef6bcee78a79f3a2.tar.gz
LimboAuth-206fedfd8765987da659f4b9ef6bcee78a79f3a2.tar.bz2
LimboAuth-206fedfd8765987da659f4b9ef6bcee78a79f3a2.zip
Refactoring + Fixes
Diffstat (limited to 'src/main/java/net/elytrium/limboauth/model')
-rw-r--r--src/main/java/net/elytrium/limboauth/model/RegisteredPlayer.java25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/main/java/net/elytrium/limboauth/model/RegisteredPlayer.java b/src/main/java/net/elytrium/limboauth/model/RegisteredPlayer.java
index b54f9b8..4827d92 100644
--- a/src/main/java/net/elytrium/limboauth/model/RegisteredPlayer.java
+++ b/src/main/java/net/elytrium/limboauth/model/RegisteredPlayer.java
@@ -23,28 +23,37 @@ import com.j256.ormlite.table.DatabaseTable;
@DatabaseTable(tableName = "AUTH")
public class RegisteredPlayer {
- @DatabaseField(canBeNull = false, columnName = "NICKNAME")
+ public static final String NICKNAME_FIELD = "NICKNAME";
+ public static final String LOWERCASE_NICKNAME_FIELD = "LOWERCASENICKNAME";
+ public static final String HASH_FIELD = "HASH";
+ public static final String IP_FIELD = "IP";
+ public static final String TOTP_TOKEN_FIELD = "TOTPTOKEN";
+ public static final String REG_DATE_FIELD = "REGDATE";
+ public static final String UUID_FIELD = "UUID";
+ public static final String PREMIUM_UUID_FIELD = "PREMIUMUUID";
+
+ @DatabaseField(canBeNull = false, columnName = NICKNAME_FIELD)
private String nickname;
- @DatabaseField(id = true, columnName = "LOWERCASENICKNAME")
+ @DatabaseField(id = true, columnName = LOWERCASE_NICKNAME_FIELD)
private String lowercaseNickname;
- @DatabaseField(canBeNull = false, columnName = "HASH")
+ @DatabaseField(canBeNull = false, columnName = HASH_FIELD)
private String hash;
- @DatabaseField(columnName = "IP")
+ @DatabaseField(columnName = IP_FIELD)
private String ip;
- @DatabaseField(columnName = "TOTPTOKEN")
+ @DatabaseField(columnName = TOTP_TOKEN_FIELD)
private String totpToken;
- @DatabaseField(columnName = "REGDATE")
+ @DatabaseField(columnName = REG_DATE_FIELD)
private Long regDate;
- @DatabaseField(columnName = "UUID")
+ @DatabaseField(columnName = UUID_FIELD)
private String uuid;
- @DatabaseField(columnName = "PREMIUMUUID")
+ @DatabaseField(columnName = RegisteredPlayer.PREMIUM_UUID_FIELD)
private String premiumUuid;
public RegisteredPlayer(String nickname, String lowercaseNickname,