Light validation on email column

This commit is contained in:
Joe Nelson
2015-11-13 13:16:40 -08:00
parent 71e6d0414d
commit 98caf9e091
+1 -1
View File
@@ -43,7 +43,7 @@ $$ LANGUAGE plpgsql;
create table if not exists
basic_auth.users (
email text primary key,
email text primary key check ( email ~* '^.+@.+\..+$' ),
pass text not null check (length(pass) < 512),
role name not null check (length(role) < 512),
verified boolean not null default false