[+] Add username field

pull/14/head
Azalea 2024-02-19 01:38:30 -05:00
parent 94a3234874
commit 58596377b1
1 changed files with 8 additions and 2 deletions

View File

@ -12,14 +12,20 @@ class AquaNetUser(
@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
var auId: Int = 0,
@Column(nullable = false, unique = true, length = 32)
var username: String = "",
// Login credentials
@Column(nullable = false, unique = true) var email: String = "",
@Column(nullable = false, unique = true)
var email: String = "",
var pwHash: String = "",
@Column(nullable = true, length = 32)
var displayName: String = "",
// Country code at most 3 characters
@Column(length = 3) var country: String = "",
@Column(length = 3)
var country: String = "",
// Last login time
var lastLogin: Long = 0L,