485 lines · 11.1 KB · JSONRaw
{ "format_version": 1, "id": "screenplay_scene", "name": "Scene", "plural": "Scenes", "builtin": true, "visibility": "owner", "title": "heading", "columns": [ { "key": "screenplay_id", "name": "Screenplay", "type": "link", "link_to": "screenplay", "required": true, "readonly": true }, { "key": "position", "type": "number", "readonly": true, "name": "Number" }, { "key": "heading", "type": "text", "placeholder": "INT. KITCHEN - DAY", "presentation": "heading" }, { "key": "body", "name": "Script", "type": "longtext", "placeholder": "Action, cues and dialogue — Fountain." }, { "key": "purpose", "type": "text", "placeholder": "What this scene does for the story" }, { "key": "archived_at", "name": "Archived", "type": "date" }, { "key": "act", "type": "choice", "choices": [ "1", "2", "3", "4", "5" ], "labels": { "1": "Act one", "2": "Act two", "3": "Act three", "4": "Act four", "5": "Act five" }, "name": "Act" }, { "key": "sequence", "type": "text", "placeholder": "The sequence it belongs to" }, { "key": "status", "type": "choice", "choices": [ "outline", "drafted", "locked" ], "labels": { "outline": "Outline", "drafted": "Drafted", "locked": "Locked" } }, { "key": "location", "type": "text", "placeholder": "Where it happens", "name": "Place" }, { "key": "characters_in_scene", "name": "Characters", "type": "text" }, { "key": "characters_set_by", "type": "text", "readonly": true }, { "key": "trashed_at", "type": "date", "format": "calendar-datetime", "readonly": true }, { "key": "words", "name": "Words", "type": "number", "readonly": true, "units": { "one": "word", "other": "words" } }, { "key": "estimated_pages", "name": "Length", "type": "number", "readonly": true, "units": { "one": "page", "other": "pages", "zero": "Under a page" } }, { "key": "warnings", "name": "Warnings", "type": "text", "readonly": true }, { "key": "screenplay_title", "name": "Screenplay", "type": "text", "readonly": true } ], "instructions": "A scene is one scene of a screenplay. Its body is Fountain text and is the source of truth; the scene heading lives in its own field, never in the body. The purpose says what the scene does for the story. Act (1 to 5), sequence, status (outline, drafted or locked) and location are the writer's own and nothing rewrites them. Characters is who speaks in the scene, worked out from the script each time it is saved, until someone writes the line by hand; clearing it hands it back to the script. Scenes are ordered by hand within their screenplay.", "card": { "face": "scene.card", "fields": [ { "slot": "crumb", "column": "screenplay_title" }, { "slot": "title", "column": "heading" }, { "slot": "facts", "column": "act" }, { "slot": "number", "column": "position" }, { "slot": "length", "column": "estimated_pages" }, { "slot": "place", "column": "location" }, { "slot": "subtitle", "column": "purpose" }, { "slot": "body", "column": "body" } ] }, "tables": [ { "name": "cotton_screenplay_scenes", "columns": [ { "name": "id", "type": "TEXT", "default": null, "nullable": true, "primary_key": true, "declaration": "\n id TEXT PRIMARY KEY", "position": 0 }, { "name": "workspace_id", "type": "TEXT", "default": null, "nullable": false, "primary_key": false, "declaration": "\n workspace_id TEXT NOT NULL", "position": 1 }, { "name": "screenplay_id", "type": "TEXT", "default": null, "nullable": false, "primary_key": false, "declaration": "\n screenplay_id TEXT NOT NULL", "position": 2 }, { "name": "position", "type": "REAL", "default": null, "nullable": false, "primary_key": false, "declaration": "\n \"position\" REAL NOT NULL", "position": 3 }, { "name": "heading", "type": "TEXT", "default": null, "nullable": true, "primary_key": false, "declaration": "\n heading TEXT", "position": 4 }, { "name": "body", "type": "TEXT", "default": null, "nullable": false, "primary_key": false, "declaration": "\n body TEXT NOT NULL", "position": 5 }, { "name": "purpose", "type": "TEXT", "default": null, "nullable": true, "primary_key": false, "declaration": "\n purpose TEXT", "position": 6 }, { "name": "created_at", "type": "TEXT", "default": null, "nullable": false, "primary_key": false, "declaration": "\n created_at TEXT NOT NULL", "position": 7 }, { "name": "updated_at", "type": "TEXT", "default": null, "nullable": false, "primary_key": false, "declaration": "\n updated_at TEXT NOT NULL", "position": 8 }, { "name": "archived_at", "type": "TEXT", "default": null, "nullable": true, "primary_key": false, "declaration": "\n archived_at TEXT", "position": 9 }, { "name": "_hlc", "type": "TEXT", "default": "''", "nullable": false, "primary_key": false, "declaration": "\n _hlc TEXT NOT NULL DEFAULT ''", "position": 10 }, { "name": "_born", "type": "TEXT", "default": null, "nullable": true, "primary_key": false, "declaration": "\n _born TEXT", "position": 11 }, { "name": "act", "type": "TEXT", "default": null, "nullable": true, "primary_key": false, "declaration": "\n act TEXT", "position": 12 }, { "name": "sequence", "type": "TEXT", "default": null, "nullable": true, "primary_key": false, "declaration": "\n sequence TEXT", "position": 13 }, { "name": "status", "type": "TEXT", "default": null, "nullable": true, "primary_key": false, "declaration": "\n status TEXT", "position": 14 }, { "name": "location", "type": "TEXT", "default": null, "nullable": true, "primary_key": false, "declaration": "\n location TEXT", "position": 15 }, { "name": "characters_in_scene", "type": "TEXT", "default": null, "nullable": true, "primary_key": false, "declaration": "\n characters_in_scene TEXT", "position": 16 }, { "name": "characters_set_by", "type": "TEXT", "default": null, "nullable": true, "primary_key": false, "declaration": "\n characters_set_by TEXT", "position": 17 }, { "name": "trashed_at", "type": "TEXT", "default": null, "nullable": true, "primary_key": false, "declaration": " trashed_at TEXT", "position": 18 } ], "constraints": [ { "declaration": "\n CHECK (act IS NULL OR act IN ('1', '2', '3', '4', '5'))", "position": 19 }, { "declaration": "\n CHECK (status IS NULL OR status IN ('outline', 'drafted', 'locked'))", "position": 20 }, { "declaration": "\n CHECK (characters_set_by IS NULL OR characters_set_by IN ('engine', 'owner'))", "position": 21 }, { "declaration": "\n FOREIGN KEY (workspace_id) REFERENCES cotton_workspaces(id) ON DELETE CASCADE", "position": 22 }, { "declaration": "\n FOREIGN KEY (screenplay_id) REFERENCES cotton_screenplays(id)\n ", "position": 23 } ], "prefix": "CREATE TABLE cotton_screenplay_scenes (", "suffix": ")", "indexes": [ "CREATE INDEX idx_cotton_screenplay_scenes_order ON cotton_screenplay_scenes (screenplay_id, \"position\")", "CREATE INDEX IF NOT EXISTS idx_cotton_screenplay_scenes_author ON cotton_screenplay_scenes (substr(_hlc, 20), _hlc)" ], "full_text": [], "triggers": [] } ], "picture": null, "engine": "screenplay", "date": null, "project": null, "order": "position", "reorder": true, "slip": { "title": "heading", "subtitle": "purpose", "trailing": "estimated_pages", "photo": null, "toggle": null, "ordinal": true }, "tile": { "face": "slip-list" }, "page": [ { "heading": null, "columns": [ "heading", "body" ] }, { "heading": "Formatting", "columns": [ "warnings" ] }, { "heading": "In the story", "columns": [ "act", "sequence", "status", "location", "characters_in_scene" ] }, { "heading": "About", "columns": [ "purpose", "words", "estimated_pages" ] } ], "page_parts": [ "title", "facts", "script", "grid" ], "archived": "archived_at", "group": { "column": "act", "sections": [ { "heading": null, "values": [] }, { "heading": "Act one", "values": [ "1" ] }, { "heading": "Act two", "values": [ "2" ] }, { "heading": "Act three", "values": [ "3" ] }, { "heading": "Act four", "values": [ "4" ] }, { "heading": "Act five", "values": [ "5" ] } ] }, "pager": "screenplay_id", "delete": false, "add": false}