reset index and use maximum length

This commit is contained in:
Athou
2013-04-06 08:17:25 +02:00
parent dafa3d1396
commit 381733deeb

View File

@@ -21,7 +21,8 @@ public class User extends AbstractModel {
@Index(name = "username_index")
private String name;
@Column(length = 256)
@Column(length = 255, unique = true)
@Index(name = "useremail_index")
private String email;
@Column(length = 256, nullable = false)