X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=schema.sql;fp=schema.sql;h=f52b8b44cd442dae3153782fb404a0353f5255ed;hb=09d46c3c1c476da11f48f953d257c9fc6e31b8cd;hp=39f11707ca3e7e3c906077586b70b1065a458fb8;hpb=c99b9d04a42f493cf7b8bf1e81022bb65e2b939b;p=cavote.git diff --git a/schema.sql b/schema.sql index 39f1170..f52b8b4 100644 --- a/schema.sql +++ b/schema.sql @@ -15,7 +15,8 @@ create table users ( create table roles ( id INTEGER primary key autoincrement, - name TEXT + name TEXT, + system INTEGER default 0 not null ); create table votes ( @@ -46,7 +47,7 @@ create table choices ( -- Test data insert into users (email, password, name, organization, is_admin, key) values ("admin@admin.fr", "admin", "Toto (admin) Tata", "World corp", 1, "test"); -insert into roles (id, name) values (1, "Tous"); +insert into roles (id, name, system) values (1, "Tous", 1); insert into roles (name) values ("CA"); insert into roles (name) values ("Members");