mac2
4
Hey! This is a simple example, but should help you get started.
Here’s how I’d begin to structure the database:
Data Type — BOOKS
Fields — Chapters (type = list of chapters), book title (type = text), book cover (type = image), book author (type = text)
Data Type — Chapters
Fields — Book (type = book), chapter body (type = text), chapter number (type = number)
First you’ll create the book in your DB. Then you’ll create chapters where the “book” field is linked to its parent book, and add the chapter to the book.
What you’re left with is a searchable structure within each book so users can search by chapter.
1 Like