nxy/schema.sql

23 lines
602 B
MySQL
Raw Normal View History

2017-05-16 05:45:10 +00:00
create table if not exists quotes (
id integer primary key autoincrement,
nick text not null,
2017-05-16 06:54:47 +00:00
item text not null,
unique (nick, item collate nocase)
2017-05-16 05:45:10 +00:00
);
2017-05-16 10:06:29 +00:00
create table if not exists mcmaniacs (
2017-05-16 05:45:10 +00:00
id integer primary key autoincrement,
item text not null,
unique (item collate nocase) on conflict replace
);
2017-05-16 10:06:29 +00:00
create table if not exists timers (
id integer primary key autoincrement,
mask text not null,
channel text not null,
message text not null,
delay text not null,
until timestamp not null,
created timestamp not null default current_timestamp
);