oficina / mapa Public

Clone
git clone https://amadan.net/oficina/mapa

Plain git — no account needed to clone.

Download

Download this file

1CREATE TABLE `notion_connections` (`id` integer PRIMARY KEY AUTOINCREMENT,`created_by` integer NOT NULL,`created_at` datetime,`verified_at` datetime,`sealed_token` blob,`sealed_workspace` blob);
2
3CREATE TABLE `notion_runs` (`id` integer PRIMARY KEY AUTOINCREMENT,`actor` integer NOT NULL,`state` text NOT NULL,`lease` integer NOT NULL,`started_at` datetime,`heartbeat_at` datetime,`progress_at` datetime,`finished_at` datetime,`surveyed` integer NOT NULL DEFAULT 0,`total` integer NOT NULL DEFAULT 0,`written` integer NOT NULL DEFAULT 0,`created` integer NOT NULL DEFAULT 0,`updated` integer NOT NULL DEFAULT 0,`unchanged` integer NOT NULL DEFAULT 0,`kept` integer NOT NULL DEFAULT 0,`failed` integer NOT NULL DEFAULT 0,`error_code` text);
4
5CREATE INDEX `idx_notion_runs_state` ON `notion_runs`(`state`);
6
7CREATE TABLE `notion_pages` (`id` integer PRIMARY KEY AUTOINCREMENT,`notion_print` text NOT NULL,`state` text NOT NULL,`error_code` text,`surveyed_run` integer NOT NULL DEFAULT 0,`seen_run` integer NOT NULL DEFAULT 0,`sealed_coordinate` blob,`sealed_staged` blob);
8
9CREATE UNIQUE INDEX `idx_notion_pages_notion_print` ON `notion_pages`(`notion_print`);
10
11
12CREATE TABLE `notion_images` (`id` integer PRIMARY KEY AUTOINCREMENT,`place_print` text NOT NULL,`block_print` text NOT NULL,`state` text NOT NULL,`sealed_record` blob);
13
14CREATE INDEX `idx_notion_images_block_print` ON `notion_images`(`block_print`);
15
16CREATE UNIQUE INDEX `idx_notion_images_place_print` ON `notion_images`(`place_print`);
17
18