Skip to content

Commit

Permalink
Modify AppUser domain model with unique constraints.
Browse files Browse the repository at this point in the history
  • Loading branch information
totalnuob committed Nov 25, 2018
1 parent 7c8d5cc commit cfe27a5
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@

@Data
@Entity
@Table(name = "appusers")
@Table(name = "appusers", uniqueConstraints = {
@UniqueConstraint(columnNames = {
"username"
}),
@UniqueConstraint(columnNames = {
"email"
})
})
public class AppUser {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down

0 comments on commit cfe27a5

Please sign in to comment.