gadl/migrations/1_platforms_and_books.sql

20 lines
448 B
MySQL
Raw Normal View History

2023-12-24 22:10:01 +09:00
-- migrate:up
2023-11-19 02:25:32 +09:00
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');
2023-12-24 22:10:01 +09:00
-- migrate:down