home / bibliothek

copy

3 rows where location_id = 20

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: updated_at (date), read_at (date)

id ▼ uuid media_id location_id ownership read_status notes updated_at deleted_at rating read_at progress_page progress_chapter
76 443f975817aef384fde35eec42085cdc Gideon the Ninth: Ninth House 1 64 20 20 own read   2026-11-16T09:11:18.894Z   6 2026-10-12 1  
77 6a44286d280489f90a9cd27eb0aa6a9a Harrow the Ninth 65 20 20 own reading   2026-11-12T12:32:31.443Z       40  
78 22329ddffa09d2737f102acc48b0f015 Nona the Ninth 66 20 20 own unread   2026-11-14T21:11:43.241Z          

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE "copy" (
  id          INTEGER PRIMARY KEY,
  uuid        TEXT NOT NULL UNIQUE DEFAULT (lower(hex(randomblob(16)))),
  media_id    INTEGER NOT NULL REFERENCES media(id),
  location_id INTEGER REFERENCES location(id),
  ownership   TEXT NOT NULL DEFAULT 'own' CHECK (ownership IN ('own','borrowed_in','returned')),
  read_status TEXT NOT NULL DEFAULT 'unread'
              CHECK (read_status IN ('unread','next','reading','read','dropped')),
  notes       TEXT,
  updated_at  TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ','now')),
  deleted_at  TEXT,
  rating      INTEGER CHECK (rating BETWEEN 0 AND 7),
  read_at     TEXT
, progress_page INTEGER, progress_chapter TEXT);
CREATE INDEX ix_copy_media    ON copy(media_id);
CREATE INDEX ix_copy_location ON copy(location_id);
Powered by Datasette · Queries took 10.707ms