mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
added indexes and constraints
This commit is contained in:
@@ -12,10 +12,10 @@ import javax.persistence.Table;
|
||||
public class UserRole extends AbstractModel {
|
||||
|
||||
@OneToOne
|
||||
@JoinColumn(name = "user_id")
|
||||
@JoinColumn(name = "user_id", nullable = false)
|
||||
private User user;
|
||||
|
||||
@Column(name = "roleName")
|
||||
@Column(name = "roleName", nullable = false)
|
||||
private String role;
|
||||
|
||||
public UserRole() {
|
||||
|
||||
Reference in New Issue
Block a user