Skip to content
Snippets Groups Projects
Unverified Commit a56005e2 authored by Pavel Kirilin's avatar Pavel Kirilin :alien:
Browse files

Added unique constraint on subscriber's email.


Signed-off-by: default avatarPavel Kirilin <win10@list.ru>
parent 4d3d2838
No related branches found
No related tags found
No related merge requests found
Pipeline #123 passed
......@@ -48,7 +48,7 @@ class Subscriber {
@GeneratedValue(strategy = GenerationType.AUTO)
var id: UUID? = null
@Column(name = "email")
@Column(name = "email", unique = true)
var email: String? = null
@CreationTimestamp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment