dépôts
/
cavote.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Admin can select groups in user creation
[cavote.git]
/
schema.sql
diff --git
a/schema.sql
b/schema.sql
index
b24a7f3
..
c1805c4
100644
(file)
--- a/
schema.sql
+++ b/
schema.sql
@@
-20,6
+20,14
@@
create table roles (
system INTEGER default 0 not null
);
system INTEGER default 0 not null
);
+create table user_role (
+ id_user INTEGER,
+ id_role INTEGER,
+ FOREIGN KEY(id_user) REFERENCES users(id),
+ FOREIGN KEY(id_role) REFERENCES roles(id),
+ PRIMARY KEY(id_user, id_role)
+);
+
create table votes (
id INTEGER primary key autoincrement,
title TEXT not null,
create table votes (
id INTEGER primary key autoincrement,
title TEXT not null,