gadl/migrations/1_init.sql
2023-11-19 02:25:32 +09:00

16 lines
417 B
SQL

create table platforms (
id integer primary key autoincrement,
name text unique not null,
secrets json not null default 'null'
);
create table books (
id integer primary key autoincrement,
reader_url text unique not null,
platform_id integer not null,
foreign key (platform_id) references platforms(id)
);
insert into platforms(name) values
('dmm-books'),
('google-play-books');