create table book ( row_id integer primary key autoincrement, id not null unique, name not null ); create table section( row_id integer primary key autoincrement, book_id not null, chapter integer not null, section integer not null, content not null, unique(book_id, chapter, section) );