mirror of
https://codeberg.org/beerbrawl/beerbrawl.git
synced 2024-09-23 01:30:52 +02:00
feat(#8): backend/entity: make username unique per user
Signed-off-by: Christoph Heiss <e11907069@student.tuwien.ac.at>
This commit is contained in:
parent
3ddd0ade6e
commit
23a0c89f3e
|
@ -1,6 +1,6 @@
|
|||
package at.ac.tuwien.sepr.groupphase.backend.entity;
|
||||
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
|
@ -14,6 +14,7 @@ public class ApplicationUser {
|
|||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
private Long id;
|
||||
@Column(unique = true)
|
||||
private String username;
|
||||
private String password;
|
||||
private Boolean admin;
|
||||
|
|
Loading…
Reference in a new issue