first commit

This commit is contained in:
2025-02-09 03:07:07 +06:00
commit d060cdba14
6 changed files with 737 additions and 0 deletions

23
schema.sql Normal file
View File

@@ -0,0 +1,23 @@
create table if not exists books (
book_id text primary key
);
create table if not exists chapters (
id integer primary key autoincrement,
book_id text,
chapter_id text,
text_en text,
text_zh text,
foreign key (book_id) references books(book_id),
unique(book_id, chapter_id)
);
create table if not exists paragraphs (
id integer primary key autoincrement,
book_id text not null,
chapter_id text not null,
text_en text,
text_zh text,
char_count integer,
foreign key (book_id, chapter_id) references chapters(book_id, chapter_id)
);