dinner_vote/db/ddl.sql

46 lines
732 B
MySQL
Raw Normal View History

2024-09-12 10:37:29 +08:00
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
);