Add Security to Citizen

This commit is contained in:
flecomte committed 2019-08-23 16:45:33 +02:00
1 parent 9b6f3aab88
commit 4f5cd827c4
9 files changed
+81 -9

No files matched your search

@@ -6,7 +6,8 @@ create table "user"
updated_at timestamptz default now() not null check ( updated_at >= created_at ),
blocked_at timestamptz default null null,
username varchar(64) not null check ( username != '' and lower(username) = username) unique,
password text not null check ( password != '' )
password text not null check ( password != '' ),
roles text[] default '{}' not null
);
create table citizen