| 1 | [ |
| 2 | { |
| 3 | "Type": "index", |
| 4 | "Name": "idx_signin_links_expires_at", |
| 5 | "Table": "signin_links", |
| 6 | "SQL": "CREATE INDEX idx_signin_links_expires_at ON signin_links(expires_at)" |
| 7 | }, |
| 8 | { |
| 9 | "Type": "index", |
| 10 | "Name": "passkey_credentials_subject", |
| 11 | "Table": "passkey_credentials", |
| 12 | "SQL": "CREATE INDEX passkey_credentials_subject\n ON passkey_credentials (subject)" |
| 13 | }, |
| 14 | { |
| 15 | "Type": "index", |
| 16 | "Name": "passkey_recovery_codes_subject", |
| 17 | "Table": "passkey_recovery_codes", |
| 18 | "SQL": "CREATE INDEX passkey_recovery_codes_subject\n ON passkey_recovery_codes (subject)" |
| 19 | }, |
| 20 | { |
| 21 | "Type": "index", |
| 22 | "Name": "sqlite_autoindex_credential_operator_results_1", |
| 23 | "Table": "credential_operator_results", |
| 24 | "SQL": "" |
| 25 | }, |
| 26 | { |
| 27 | "Type": "index", |
| 28 | "Name": "sqlite_autoindex_credential_operator_results_2", |
| 29 | "Table": "credential_operator_results", |
| 30 | "SQL": "" |
| 31 | }, |
| 32 | { |
| 33 | "Type": "index", |
| 34 | "Name": "sqlite_autoindex_passkey_challenges_1", |
| 35 | "Table": "passkey_challenges", |
| 36 | "SQL": "" |
| 37 | }, |
| 38 | { |
| 39 | "Type": "index", |
| 40 | "Name": "sqlite_autoindex_passkey_credentials_1", |
| 41 | "Table": "passkey_credentials", |
| 42 | "SQL": "" |
| 43 | }, |
| 44 | { |
| 45 | "Type": "index", |
| 46 | "Name": "sqlite_autoindex_passkey_pending_1", |
| 47 | "Table": "passkey_pending", |
| 48 | "SQL": "" |
| 49 | }, |
| 50 | { |
| 51 | "Type": "index", |
| 52 | "Name": "sqlite_autoindex_passkey_recovery_codes_1", |
| 53 | "Table": "passkey_recovery_codes", |
| 54 | "SQL": "" |
| 55 | }, |
| 56 | { |
| 57 | "Type": "index", |
| 58 | "Name": "sqlite_autoindex_people_1", |
| 59 | "Table": "people", |
| 60 | "SQL": "" |
| 61 | }, |
| 62 | { |
| 63 | "Type": "index", |
| 64 | "Name": "sqlite_autoindex_people_2", |
| 65 | "Table": "people", |
| 66 | "SQL": "" |
| 67 | }, |
| 68 | { |
| 69 | "Type": "index", |
| 70 | "Name": "sqlite_autoindex_rastrillo_migrations_1", |
| 71 | "Table": "rastrillo_migrations", |
| 72 | "SQL": "" |
| 73 | }, |
| 74 | { |
| 75 | "Type": "index", |
| 76 | "Name": "sqlite_autoindex_sessions_1", |
| 77 | "Table": "sessions", |
| 78 | "SQL": "" |
| 79 | }, |
| 80 | { |
| 81 | "Type": "index", |
| 82 | "Name": "sqlite_autoindex_signin_links_1", |
| 83 | "Table": "signin_links", |
| 84 | "SQL": "" |
| 85 | }, |
| 86 | { |
| 87 | "Type": "table", |
| 88 | "Name": "_litestream_lock", |
| 89 | "Table": "_litestream_lock", |
| 90 | "SQL": "CREATE TABLE _litestream_lock (id INTEGER)" |
| 91 | }, |
| 92 | { |
| 93 | "Type": "table", |
| 94 | "Name": "_litestream_seq", |
| 95 | "Table": "_litestream_seq", |
| 96 | "SQL": "CREATE TABLE _litestream_seq (id INTEGER PRIMARY KEY, seq INTEGER)" |
| 97 | }, |
| 98 | { |
| 99 | "Type": "table", |
| 100 | "Name": "credential_operator_results", |
| 101 | "Table": "credential_operator_results", |
| 102 | "SQL": "CREATE TABLE credential_operator_results (\n operation_id TEXT PRIMARY KEY CHECK(length(operation_id)=43),\n action TEXT NOT NULL,\n sequence INTEGER NOT NULL UNIQUE CHECK(typeof(sequence)='integer' AND sequence\u003e0),\n authorization_head TEXT NOT NULL CHECK(length(authorization_head)=43),\n request_mac BLOB NOT NULL CHECK(typeof(request_mac)='blob' AND length(request_mac)=32),\n sealed_result BLOB NOT NULL CHECK(typeof(sealed_result)='blob' AND length(sealed_result) BETWEEN 29 AND 49180),\n completed_at INTEGER NOT NULL CHECK(typeof(completed_at)='integer' AND completed_at\u003e0)\n, operator_ref TEXT NOT NULL DEFAULT '')" |
| 103 | }, |
| 104 | { |
| 105 | "Type": "table", |
| 106 | "Name": "credential_operator_state", |
| 107 | "Table": "credential_operator_state", |
| 108 | "SQL": "CREATE TABLE credential_operator_state (\n singleton INTEGER PRIMARY KEY CHECK(singleton=1),\n origin TEXT NOT NULL,\n installation TEXT NOT NULL,\n registry TEXT NOT NULL,\n device TEXT NOT NULL,\n sequence INTEGER NOT NULL CHECK(typeof(sequence)='integer' AND sequence\u003e0),\n head TEXT NOT NULL CHECK(length(head)=43),\n completed_at INTEGER NOT NULL CHECK(typeof(completed_at)='integer' AND completed_at\u003e0)\n, key_id TEXT NOT NULL DEFAULT '')" |
| 109 | }, |
| 110 | { |
| 111 | "Type": "table", |
| 112 | "Name": "passkey_challenges", |
| 113 | "Table": "passkey_challenges", |
| 114 | "SQL": "CREATE TABLE passkey_challenges (\n challenge TEXT PRIMARY KEY,\n subject TEXT NOT NULL,\n purpose TEXT NOT NULL,\n expires_at TEXT NOT NULL\n)" |
| 115 | }, |
| 116 | { |
| 117 | "Type": "table", |
| 118 | "Name": "passkey_credentials", |
| 119 | "Table": "passkey_credentials", |
| 120 | "SQL": "CREATE TABLE passkey_credentials (\n id TEXT PRIMARY KEY,\n subject TEXT NOT NULL,\n public_key BLOB NOT NULL,\n sign_count INTEGER NOT NULL DEFAULT 0,\n created_at TEXT NOT NULL\n)" |
| 121 | }, |
| 122 | { |
| 123 | "Type": "table", |
| 124 | "Name": "passkey_pending", |
| 125 | "Table": "passkey_pending", |
| 126 | "SQL": "CREATE TABLE passkey_pending (\n token_hash TEXT PRIMARY KEY,\n subject TEXT NOT NULL,\n method TEXT NOT NULL DEFAULT '',\n return_to TEXT NOT NULL DEFAULT '',\n expires_at TEXT NOT NULL\n)" |
| 127 | }, |
| 128 | { |
| 129 | "Type": "table", |
| 130 | "Name": "passkey_recovery_codes", |
| 131 | "Table": "passkey_recovery_codes", |
| 132 | "SQL": "CREATE TABLE passkey_recovery_codes (\n code_hash TEXT PRIMARY KEY,\n subject TEXT NOT NULL,\n created_at TEXT NOT NULL\n)" |
| 133 | }, |
| 134 | { |
| 135 | "Type": "table", |
| 136 | "Name": "people", |
| 137 | "Table": "people", |
| 138 | "SQL": "CREATE TABLE people (\n person_ref TEXT PRIMARY KEY,\n blind_index TEXT NOT NULL UNIQUE, -- UNIQUE already indexes it; no second index\n created_at TEXT NOT NULL\n)" |
| 139 | }, |
| 140 | { |
| 141 | "Type": "table", |
| 142 | "Name": "rastrillo_migrations", |
| 143 | "Table": "rastrillo_migrations", |
| 144 | "SQL": "CREATE TABLE rastrillo_migrations (\n id TEXT PRIMARY KEY,\n applied_at TEXT NOT NULL,\n checksum TEXT NOT NULL\n)" |
| 145 | }, |
| 146 | { |
| 147 | "Type": "table", |
| 148 | "Name": "sessions", |
| 149 | "Table": "sessions", |
| 150 | "SQL": "CREATE TABLE sessions (\n token_hash TEXT PRIMARY KEY,\n subject TEXT NOT NULL,\n method TEXT NOT NULL DEFAULT '',\n auth_time TEXT NOT NULL DEFAULT '',\n created_at TEXT NOT NULL,\n expires_at TEXT NOT NULL\n)" |
| 151 | }, |
| 152 | { |
| 153 | "Type": "table", |
| 154 | "Name": "signin_links", |
| 155 | "Table": "signin_links", |
| 156 | "SQL": "CREATE TABLE signin_links (\n token_hash TEXT PRIMARY KEY,\n sealed_address BLOB NOT NULL,\n purpose TEXT NOT NULL,\n expires_at TEXT NOT NULL\n)" |
| 157 | } |
| 158 | ] |
| 159 | |