46 lines
732 B
MySQL
46 lines
732 B
MySQL
|
create table main.menu
|
||
|
(
|
||
|
name text
|
||
|
constraint menu_pk
|
||
|
primary key,
|
||
|
label text,
|
||
|
order_num integer,
|
||
|
expression text
|
||
|
);
|
||
|
|
||
|
create table main.roll_result
|
||
|
(
|
||
|
datestr text
|
||
|
constraint roll_result_pk
|
||
|
primary key,
|
||
|
value text
|
||
|
);
|
||
|
|
||
|
create table main.sqlite_master
|
||
|
(
|
||
|
type TEXT,
|
||
|
name TEXT,
|
||
|
tbl_name TEXT,
|
||
|
rootpage INT,
|
||
|
sql TEXT
|
||
|
);
|
||
|
|
||
|
create table main.user_menu
|
||
|
(
|
||
|
user text,
|
||
|
menu text,
|
||
|
datestr text,
|
||
|
nickname text,
|
||
|
primary key (user, datestr),
|
||
|
constraint user_menu_pk
|
||
|
unique (nickname, datestr)
|
||
|
);
|
||
|
|
||
|
create table main.users
|
||
|
(
|
||
|
nickname text
|
||
|
constraint users_pk
|
||
|
primary key
|
||
|
);
|
||
|
|