add email to citizen table

This commit is contained in:
2019-10-08 14:13:31 +02:00
parent afb7f7a1a6
commit ebc552a431
10 changed files with 30 additions and 18 deletions

View File

@@ -18,7 +18,8 @@ create table citizen
birthday date not null,
user_id uuid not null references "user" (id) unique,
vote_anonymous boolean default true not null,
follow_anonymous boolean default true not null
follow_anonymous boolean default true not null,
email text not null check ( email ~* '.+@.+\..+' )
);
create table workgroup