-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser.java
More file actions
37 lines (31 loc) · 892 Bytes
/
User.java
File metadata and controls
37 lines (31 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package models;
// Represents the User entity in the system
public class User {
// Attributes
private String studentId;
private String email;
private String passwordHash;
private String fullName;
private String status; // ACTIVE or BANNED
// Constructor
public User(String studentId, String email, String passwordHash, String fullName) {
this.studentId = studentId;
this.email = email;
this.passwordHash = passwordHash;
this.fullName = fullName;
this.status = "ACTIVE"; // Default status
}
// Getters
public String getEmail() {
return email;
}
public String getPasswordHash() {
return passwordHash;
}
public String getFullName() {
return fullName;
}
public String getStudentId() {
return studentId;
}
}