17 lines
462 B
SQL
17 lines
462 B
SQL
create table if not exists Manga (
|
|
ID integer not null primary key,
|
|
Title text,
|
|
TimeStampUnixEpoch integer not null,
|
|
Thumbnail blob,
|
|
LatestAvailableChapter integer not null
|
|
);
|
|
|
|
create table if not exists Chapter (
|
|
ID integer not null primary key,
|
|
MangaID integer not null,
|
|
Url text not null,
|
|
Name text null,
|
|
Number integer not null,
|
|
TimeStampUnixEpoch integer not null,
|
|
foreign key(MangaID) references Manga(ID)
|
|
); |