Added announcements and anniversaries.
This commit is contained in:
parent
04905d4a1e
commit
15e4619de0
1 changed files with 21 additions and 0 deletions
|
|
@ -196,6 +196,27 @@ create table birthdays (
|
|||
primary key (userid, chatid)
|
||||
);
|
||||
|
||||
create table anniversaries (
|
||||
id integer primary key autoincrement,
|
||||
month integer not null,
|
||||
day integer not null,
|
||||
year integer default 0 not null,
|
||||
title text defalt '' not null,
|
||||
|
||||
primmary key (id)
|
||||
);
|
||||
create index anniversaries_month_day_idx on anniversaries (month, day);
|
||||
|
||||
create table announcements (
|
||||
id integer primary key autoincrement,
|
||||
scheduled_for datetime not null,
|
||||
reminders boolean default true not null,
|
||||
title text default '' not null,
|
||||
content text default '' not null,
|
||||
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
-- Enable with PRAGMA foreign_keys = ON;
|
||||
|
||||
create table books (
|
||||
|
|
|
|||
Loading…
Reference in a new issue