aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/models/User.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/models/User.java')
-rw-r--r--src/main/java/models/User.java45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/main/java/models/User.java b/src/main/java/models/User.java
new file mode 100644
index 0000000..08e4ab0
--- /dev/null
+++ b/src/main/java/models/User.java
@@ -0,0 +1,45 @@
+package models;
+
+public class User {
+ public long id;
+ public String username;
+ public String password;
+ public boolean admin;
+
+ public long getId() {
+ return id;
+ }
+
+ public void setId(long id) {
+ this.id = id;
+ }
+
+ public String getUsername() {
+ return username;
+ }
+
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public boolean isAdmin() {
+ return admin;
+ }
+
+ public void setAdmin(boolean admin) {
+ this.admin = admin;
+ }
+
+ public User() {
+ super();
+ }
+
+}