]>
Commit | Line | Data |
---|---|---|
a5eae6b7 MR |
1 | BEGIN TRANSACTION; |
2 | DELETE FROM sqlite_sequence; | |
3 | INSERT INTO "sqlite_sequence" VALUES('roles',2); | |
4 | INSERT INTO "sqlite_sequence" VALUES('user',5); | |
5 | CREATE TABLE roles ( | |
6 | id integer primary key autoincrement, | |
7 | name text not null | |
8 | ); | |
9 | INSERT INTO "roles" VALUES(0,'administrator'); | |
10 | INSERT INTO "roles" VALUES(1,'power user'); | |
11 | INSERT INTO "roles" VALUES(2,'user'); | |
12 | CREATE TABLE user ( | |
13 | id integer primary key autoincrement, | |
14 | uid text not null, | |
15 | pwd text not null, | |
16 | userrole integer not null, | |
17 | timeout integer default 3600, | |
18 | userview text default 'week', | |
19 | weekstart integer default 0, | |
20 | daystart real default 8.00, | |
21 | dayend real default 17.00, | |
22 | seckey text default '', | |
23 | pubkey text default '', | |
24 | constraint uid_index unique (uid) | |
25 | constraint userrole_fk foreign key (userrole) references roles (id) | |
26 | on delete restrict | |
27 | on update cascade | |
28 | on insert cascade | |
29 | ); | |
30 | INSERT INTO "user" VALUES(1,'admin','d033e22ae348aeb5660fc2140aec35850c4da997',0,1200,'week',0,8.0,17.0,'',''); | |
31 | Content-type: text/html ]>