Create User.java JPA entity in com.absolutecode.ticketsystem.model.
Fields: id, username, password (BCrypt), email, firstName, lastName, role (enum), department (ManyToOne, optional), active (default true), createdAt.
Key details:
@Enumerated(EnumType.STRING) for role
@ManyToOne relationship to Department
- No setter for id or createdAt
- Depends on: Role enum, Department entity (done)
See DECISIONS.md for full field spec.
Create
User.javaJPA entity incom.absolutecode.ticketsystem.model.Fields: id, username, password (BCrypt), email, firstName, lastName, role (enum), department (ManyToOne, optional), active (default true), createdAt.
Key details:
@Enumerated(EnumType.STRING)for role@ManyToOnerelationship to DepartmentSee DECISIONS.md for full field spec.