@seedprotocol/sdk 0.7.11-next.1384.g8b47246 → 0.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseFileManager-DLou1TZS.js → BaseFileManager-D-pLXQAp.js} +2 -14
- package/dist/BaseFileManager-D-pLXQAp.js.map +1 -0
- package/dist/{Item-Ld1iPicQ.js → Item-BU9wIT7l.js} +61 -59
- package/dist/Item-BU9wIT7l.js.map +1 -0
- package/dist/{ModelProperty-C8gTx4pO.js → ModelProperty-Bv7KzP97.js} +40 -37
- package/dist/ModelProperty-Bv7KzP97.js.map +1 -0
- package/dist/{Schema-BzeBUZxi.js → Schema-C_4wv0RP.js} +22 -22
- package/dist/{Schema-BzeBUZxi.js.map → Schema-C_4wv0RP.js.map} +1 -1
- package/dist/{SchemaValidationService-CW0s7V7R.js → SchemaValidationService-Dc-lpFQX.js} +9 -6
- package/dist/{SchemaValidationService-CW0s7V7R.js.map → SchemaValidationService-Dc-lpFQX.js.map} +1 -1
- package/dist/{tabEvents-BnBzIdEi.js → arweaveContentTags-iW_HcWJA.js} +53 -5
- package/dist/arweaveContentTags-iW_HcWJA.js.map +1 -0
- package/dist/{configurePlatform-WkmvqeTO.js → configurePlatform-BH1YOZpg.js} +2 -2
- package/dist/{configurePlatform-WkmvqeTO.js.map → configurePlatform-BH1YOZpg.js.map} +1 -1
- package/dist/db/drizzle/0030_drop_property_uids.sql +1 -0
- package/dist/db/drizzle/meta/0030_snapshot.json +1638 -0
- package/dist/db/drizzle/meta/_journal.json +8 -1
- package/dist/{detachRowsBeforeDelete-BZr_0iZU.js → detachRowsBeforeDelete-Cie55SoG.js} +4 -6
- package/dist/detachRowsBeforeDelete-Cie55SoG.js.map +1 -0
- package/dist/dist/{BaseFileManager-DLou1TZS.d.ts → BaseFileManager-D-pLXQAp.d.ts} +432 -495
- package/dist/dist/BaseFileManager-D-pLXQAp.d.ts.map +1 -0
- package/dist/dist/{configurePlatform-WkmvqeTO.d.ts → configurePlatform-BH1YOZpg.d.ts} +1 -1
- package/dist/dist/configurePlatform-BH1YOZpg.d.ts.map +1 -0
- package/dist/dist/{index-BjWk0x4-.d.ts → index-2PaIhvOU.d.ts} +1 -64
- package/dist/dist/{index-BjWk0x4-.d.ts.map → index-2PaIhvOU.d.ts.map} +1 -1
- package/dist/dist/{index.node-DV1OXCp0.d.ts → index.node-C3rI1upv.d.ts} +1 -253
- package/dist/dist/{index.node-DV1OXCp0.d.ts.map → index.node-C3rI1upv.d.ts.map} +1 -1
- package/dist/dist/minimumUpgradeVersion-Dg2MguFf.d.ts +20 -0
- package/dist/dist/minimumUpgradeVersion-Dg2MguFf.d.ts.map +1 -0
- package/dist/dist/platform.node.d.ts +2 -2
- package/dist/{download-Cvac_VGu.js → download-DHWUPLlK.js} +4 -5
- package/dist/{download-Cvac_VGu.js.map → download-DHWUPLlK.js.map} +1 -1
- package/dist/{eas-CdhfODXL.js → eas-MXEdKKVc.js} +10 -7
- package/dist/{eas-CdhfODXL.js.map → eas-MXEdKKVc.js.map} +1 -1
- package/dist/{ensureImageLocal-DNM6c2yD.js → ensureImageLocal-B6suz6FC.js} +8 -9
- package/dist/{ensureImageLocal-DNM6c2yD.js.map → ensureImageLocal-B6suz6FC.js.map} +1 -1
- package/dist/{getPublishPayload-CLrAcZwr.js → getPublishPayload-Dd3HCYeI.js} +8 -49
- package/dist/getPublishPayload-Dd3HCYeI.js.map +1 -0
- package/dist/{getPublishPendingDiff-DiPff8pS.js → getPublishPendingDiff-kcTP52Kj.js} +11 -9
- package/dist/{getPublishPendingDiff-DiPff8pS.js.map → getPublishPendingDiff-kcTP52Kj.js.map} +1 -1
- package/dist/{index-BjWk0x4-.js → index-2PaIhvOU.js} +2 -4
- package/dist/index-2PaIhvOU.js.map +1 -0
- package/dist/{index-9udoYObJ.js → index-BXTyvnKb.js} +11 -8
- package/dist/index-BXTyvnKb.js.map +1 -0
- package/dist/{index-CghAYA-z.js → index-CmNqUKQN.js} +11 -8
- package/dist/index-CmNqUKQN.js.map +1 -0
- package/dist/{index-Cdm7Q7el.js → index-Xs_EDi-_.js} +18 -403
- package/dist/index-Xs_EDi-_.js.map +1 -0
- package/dist/{index.browser-D9oC-KKx.js → index.browser-BkcOQGhw.js} +25 -69
- package/dist/index.browser-BkcOQGhw.js.map +1 -0
- package/dist/{index.node-DV1OXCp0.js → index.node-C3rI1upv.js} +8 -6
- package/dist/index.node-C3rI1upv.js.map +1 -0
- package/dist/main.js +19 -22
- package/dist/main.js.map +1 -1
- package/dist/{minimumUpgradeVersion-BDhHvHtr.js → minimumUpgradeVersion-Dg2MguFf.js} +38 -9
- package/dist/minimumUpgradeVersion-Dg2MguFf.js.map +1 -0
- package/dist/{modelPropertyRecordSchemas-se4QMXSi.js → modelPropertyRecordSchemas-CEac3FB8.js} +8 -5
- package/dist/{modelPropertyRecordSchemas-se4QMXSi.js.map → modelPropertyRecordSchemas-CEac3FB8.js.map} +1 -1
- package/dist/node.js +14 -11
- package/dist/node.js.map +1 -1
- package/dist/platform.browser.js +6 -7
- package/dist/platform.browser.js.map +1 -1
- package/dist/platform.node.js +5 -5
- package/dist/{property-Broz_CWj.js → property-4jSqHieb.js} +11 -8
- package/dist/property-4jSqHieb.js.map +1 -0
- package/dist/{errors-DKxFSvb3.js → publishErrors-DZXDX3B6.js} +1688 -195
- package/dist/publishErrors-DZXDX3B6.js.map +1 -0
- package/dist/{readHtmlBodyForStorageSeed-FvwYPn4m.js → readHtmlBodyForStorageSeed-Cva1DPzE.js} +9 -9
- package/dist/{readHtmlBodyForStorageSeed-FvwYPn4m.js.map → readHtmlBodyForStorageSeed-Cva1DPzE.js.map} +1 -1
- package/dist/seedSchema/index.ts +0 -1
- package/dist/src/ItemProperty/ItemProperty.d.ts +1 -0
- package/dist/src/ItemProperty/ItemProperty.d.ts.map +1 -1
- package/dist/src/browser/db/Db.d.ts.map +1 -1
- package/dist/src/browser/db/drizzleFiles.d.ts +3 -2
- package/dist/src/browser/db/drizzleFiles.d.ts.map +1 -1
- package/dist/src/db/minimumUpgradeVersion.d.ts +20 -5
- package/dist/src/db/minimumUpgradeVersion.d.ts.map +1 -1
- package/dist/src/helpers/entity/detachRowsBeforeDelete.d.ts +2 -3
- package/dist/src/helpers/entity/detachRowsBeforeDelete.d.ts.map +1 -1
- package/dist/src/index.d.ts +4 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/node/db/Db.d.ts.map +1 -1
- package/dist/src/node/index.d.ts +9 -1
- package/dist/src/node/index.d.ts.map +1 -1
- package/dist/src/seedSchema/index.d.ts +0 -1
- package/dist/src/seedSchema/index.d.ts.map +1 -1
- package/dist/{syncDbWithEas-Dj_8VqM7.js → syncDbWithEas-V_9gIyHp.js} +21 -20
- package/dist/syncDbWithEas-V_9gIyHp.js.map +1 -0
- package/dist/{tolerantWebAccess-CNfvmR3m.js → tolerantWebAccess-D6hFxREe.js} +7 -8
- package/dist/{tolerantWebAccess-CNfvmR3m.js.map → tolerantWebAccess-D6hFxREe.js.map} +1 -1
- package/dist/{updateSeedRevokedAt-D-3SLW-D.js → updateSeedRevokedAt-CsAoUEEt.js} +4 -4
- package/dist/{updateSeedRevokedAt-D-3SLW-D.js.map → updateSeedRevokedAt-CsAoUEEt.js.map} +1 -1
- package/package.json +7 -7
- package/dist/BaseFileManager-DLou1TZS.js.map +0 -1
- package/dist/Item-Ld1iPicQ.js.map +0 -1
- package/dist/ModelProperty-C8gTx4pO.js.map +0 -1
- package/dist/arweaveContentTags-Bh4wCTal.js +0 -51
- package/dist/arweaveContentTags-Bh4wCTal.js.map +0 -1
- package/dist/detachRowsBeforeDelete-BZr_0iZU.js.map +0 -1
- package/dist/dist/BaseFileManager-DLou1TZS.d.ts.map +0 -1
- package/dist/dist/configurePlatform-WkmvqeTO.d.ts.map +0 -1
- package/dist/dist/minimumUpgradeVersion-BDhHvHtr.d.ts +0 -9
- package/dist/dist/minimumUpgradeVersion-BDhHvHtr.d.ts.map +0 -1
- package/dist/errors-DKxFSvb3.js.map +0 -1
- package/dist/getPublishPayload-CLrAcZwr.js.map +0 -1
- package/dist/getPublishUploads-DFcgc27c.js +0 -784
- package/dist/getPublishUploads-DFcgc27c.js.map +0 -1
- package/dist/index-9udoYObJ.js.map +0 -1
- package/dist/index-BjWk0x4-.js.map +0 -1
- package/dist/index-Cdm7Q7el.js.map +0 -1
- package/dist/index-CghAYA-z.js.map +0 -1
- package/dist/index.browser-D9oC-KKx.js.map +0 -1
- package/dist/index.node-DV1OXCp0.js.map +0 -1
- package/dist/minimumUpgradeVersion-BDhHvHtr.js.map +0 -1
- package/dist/property-Broz_CWj.js.map +0 -1
- package/dist/publishGraph-DnWoWZRP.js +0 -311
- package/dist/publishGraph-DnWoWZRP.js.map +0 -1
- package/dist/seedSchema/PropertyUidSchema.ts +0 -16
- package/dist/src/seedSchema/PropertyUidSchema.d.ts +0 -64
- package/dist/src/seedSchema/PropertyUidSchema.d.ts.map +0 -1
- package/dist/syncDbWithEas-Dj_8VqM7.js.map +0 -1
- package/dist/tabEvents-BnBzIdEi.js.map +0 -1
package/dist/{readHtmlBodyForStorageSeed-FvwYPn4m.js → readHtmlBodyForStorageSeed-Cva1DPzE.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as BaseFileManager } from './BaseFileManager-D-pLXQAp.js';
|
|
2
2
|
import { fetchArweaveRawTextAcrossGateways } from '@seedprotocol/arweave';
|
|
3
3
|
import 'debug';
|
|
4
4
|
import 'drizzle-orm/sqlite-core';
|
|
@@ -36,8 +36,8 @@ async function resolveHtmlStorageSeedLocalId(propertyValue) {
|
|
|
36
36
|
if (!pv)
|
|
37
37
|
return undefined;
|
|
38
38
|
if (SEED_UID_HEX_RE.test(pv)) {
|
|
39
|
-
const _mod_0 = await import('./Item-
|
|
40
|
-
const _ns_0 = _mod_0.
|
|
39
|
+
const _mod_0 = await import('./Item-BU9wIT7l.js');
|
|
40
|
+
const _ns_0 = _mod_0.bO;
|
|
41
41
|
const { findSeedRow } = _ns_0;
|
|
42
42
|
return (await findSeedRow({ uid: pv }))?.localId ?? undefined;
|
|
43
43
|
}
|
|
@@ -49,8 +49,8 @@ async function resolveHtmlStorageSeedLocalId(propertyValue) {
|
|
|
49
49
|
* client, then a download into `html/` (named after the seed or the transaction).
|
|
50
50
|
*/
|
|
51
51
|
async function readHtmlBodyFromChildStorageArweave(seedLocalId) {
|
|
52
|
-
const _mod_1 = await import('./Item-
|
|
53
|
-
const _ns_1 = _mod_1.
|
|
52
|
+
const _mod_1 = await import('./Item-BU9wIT7l.js');
|
|
53
|
+
const _ns_1 = _mod_1.bW;
|
|
54
54
|
const { storageSeedTransactionId } = _ns_1;
|
|
55
55
|
const txId = await storageSeedTransactionId({ seedLocalId });
|
|
56
56
|
if (!txId || SEED_UID_HEX_RE.test(txId))
|
|
@@ -70,10 +70,10 @@ async function readHtmlBodyFromChildStorageArweave(seedLocalId) {
|
|
|
70
70
|
/* offline / bad tx id */
|
|
71
71
|
}
|
|
72
72
|
try {
|
|
73
|
-
const { downloadTransactionIdWithDedupe } = await import('./download-
|
|
73
|
+
const { downloadTransactionIdWithDedupe } = await import('./download-DHWUPLlK.js');
|
|
74
74
|
await downloadTransactionIdWithDedupe(txId);
|
|
75
|
-
const _mod_2 = await import('./Item-
|
|
76
|
-
const _ns_2 = _mod_2.
|
|
75
|
+
const _mod_2 = await import('./Item-BU9wIT7l.js');
|
|
76
|
+
const _ns_2 = _mod_2.bV;
|
|
77
77
|
const { findFileInDir } = _ns_2;
|
|
78
78
|
const filePath = await findFileInDir('html', [`${seedLocalId}.html`, extractArweaveTransactionId(txId)]);
|
|
79
79
|
if (filePath)
|
|
@@ -105,4 +105,4 @@ async function readHtmlBodyForStorageSeedPropertyValue(propertyValue) {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
export { readHtmlBodyForStorageSeedPropertyValue, resolveHtmlStorageSeedLocalId };
|
|
108
|
-
//# sourceMappingURL=readHtmlBodyForStorageSeed-
|
|
108
|
+
//# sourceMappingURL=readHtmlBodyForStorageSeed-Cva1DPzE.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readHtmlBodyForStorageSeed-FvwYPn4m.js","sources":["../../src/helpers/readHtmlBodyForStorageSeed.ts"],"sourcesContent":["import { BaseFileManager } from '@/helpers/FileManager/BaseFileManager'\nimport { fetchArweaveRawTextAcrossGateways } from '@seedprotocol/arweave'\n\n/** Published storage seeds use `0x` + 64 hex; `saveHtml` still writes `html/{localId}.html`. */\nconst SEED_UID_HEX_RE = /^0x[a-fA-F0-9]{64}$/\n\n/** Arweave L1 transaction ids are 43 URL-safe base64 characters. */\nconst ARWEAVE_TX_ID_IN_STRING_RE = /[a-z0-9_-]{43}/i\n\nfunction extractArweaveTransactionId(raw: string): string {\n const t = raw.trim()\n const embedded = t.match(ARWEAVE_TX_ID_IN_STRING_RE)\n if (embedded && /^[a-z0-9_-]{43}$/i.test(embedded[0])) {\n return embedded[0]\n }\n return t\n}\n\n/**\n * GET /raw/{txId} on each read gateway, preferred ones ({@link setPreferredArweaveReadBaseUrls})\n * first. Avoids arweave.js /tx/.../offset which often 404s on arweave.net while another gateway\n * (e.g. ar.seedprotocol.io, or the one the item was just uploaded through) still serves the data.\n */\nasync function fetchHtmlViaRawAcrossGateways(txId: string): Promise<string | undefined> {\n const id = extractArweaveTransactionId(txId)\n if (!id || SEED_UID_HEX_RE.test(id)) return undefined\n return fetchArweaveRawTextAcrossGateways(id)\n}\n\n/**\n * Resolve the Html storage seed's `local_id` used for the `{localId}.html` file name.\n * `propertyValue` on the parent Html property is either that local id or the seed uid after publish.\n */\nexport async function resolveHtmlStorageSeedLocalId(\n propertyValue: string | null | undefined,\n): Promise<string | undefined> {\n const pv = String(propertyValue ?? '').trim()\n if (!pv) return undefined\n if (SEED_UID_HEX_RE.test(pv)) {\n const { findSeedRow } = await import('../db/read/findSeedRow')\n return (await findSeedRow({ uid: pv }))?.localId ?? undefined\n }\n return pv\n}\n\n/**\n * When the local draft file is gone (new device, OPFS cleared, etc.), load HTML from the\n * Html storage seed's published Arweave transaction id: a read gateway's `/raw`, then the Arweave\n * client, then a download into `html/` (named after the seed or the transaction).\n */\nasync function readHtmlBodyFromChildStorageArweave(seedLocalId: string): Promise<string | undefined> {\n const { storageSeedTransactionId } = await import('@/storageValue/resolve')\n const txId = await storageSeedTransactionId({ seedLocalId })\n if (!txId || SEED_UID_HEX_RE.test(txId)) return undefined\n\n const rawHtml = await fetchHtmlViaRawAcrossGateways(txId)\n if (rawHtml) return rawHtml\n\n try {\n const { BaseArweaveClient } = await import('@seedprotocol/arweave')\n const data = await BaseArweaveClient.getTransactionData(extractArweaveTransactionId(txId), {\n string: true,\n })\n if (typeof data === 'string' && data.length > 0) return data\n } catch {\n /* offline / bad tx id */\n }\n\n try {\n const { downloadTransactionIdWithDedupe } = await import('../events/files/download')\n await downloadTransactionIdWithDedupe(txId)\n const { findFileInDir } = await import('@/storageValue/findFile')\n const filePath = await findFileInDir('html', [`${seedLocalId}.html`, extractArweaveTransactionId(txId)])\n if (filePath) return BaseFileManager.readFileAsString(filePath)\n } catch {\n /* OPFS unsupported or download failed */\n }\n return undefined\n}\n\n/** Read saved HTML body for a parent Html property whose `propertyValue` points at the Html storage seed. */\nexport async function readHtmlBodyForStorageSeedPropertyValue(\n propertyValue: string | null | undefined,\n): Promise<string | undefined> {\n const pv = String(propertyValue ?? '').trim()\n if (!pv) return undefined\n const localId = await resolveHtmlStorageSeedLocalId(propertyValue)\n const fp = localId ? BaseFileManager.getFilesPath('html', `${localId}.html`) : ''\n let fileExists = fp ? await BaseFileManager.pathExists(fp) : false\n // OPFS: file can appear shortly after create/download; avoid false \"missing\" before hitting Arweave.\n if (!fileExists && fp) {\n await BaseFileManager.waitForFileWithContent(fp, 100, 5000).catch(() => {})\n fileExists = await BaseFileManager.pathExists(fp)\n }\n let body = fileExists && fp ? await BaseFileManager.readFileAsString(fp) : undefined\n\n if (!body && localId) {\n body = await readHtmlB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CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,IAAI,CAAA,CAAE,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAe,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAC,CAAA,CAAE,CAAC,GAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS;AAEpF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAI,OAAO,CAAA,CAAE;AACpB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAI,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmC,CAAC,OAAO,CAAC;IAC3D;AAEA,CAAA,CAAA,CAAA,CAAA,OAAO,CAAA,CAAA,CAAA,CAAI;AACb;;"}
|
|
1
|
+
{"version":3,"file":"readHtmlBodyForStorageSeed-Cva1DPzE.js","sources":["../../src/helpers/readHtmlBodyForStorageSeed.ts"],"sourcesContent":["import { BaseFileManager } from '@/helpers/FileManager/BaseFileManager'\nimport { fetchArweaveRawTextAcrossGateways } from '@seedprotocol/arweave'\n\n/** Published storage seeds use `0x` + 64 hex; `saveHtml` still writes `html/{localId}.html`. */\nconst SEED_UID_HEX_RE = /^0x[a-fA-F0-9]{64}$/\n\n/** Arweave L1 transaction ids are 43 URL-safe base64 characters. */\nconst ARWEAVE_TX_ID_IN_STRING_RE = /[a-z0-9_-]{43}/i\n\nfunction extractArweaveTransactionId(raw: string): string {\n const t = raw.trim()\n const embedded = t.match(ARWEAVE_TX_ID_IN_STRING_RE)\n if (embedded && /^[a-z0-9_-]{43}$/i.test(embedded[0])) {\n return embedded[0]\n }\n return t\n}\n\n/**\n * GET /raw/{txId} on each read gateway, preferred ones ({@link setPreferredArweaveReadBaseUrls})\n * first. Avoids arweave.js /tx/.../offset which often 404s on arweave.net while another gateway\n * (e.g. ar.seedprotocol.io, or the one the item was just uploaded through) still serves the data.\n */\nasync function fetchHtmlViaRawAcrossGateways(txId: string): Promise<string | undefined> {\n const id = extractArweaveTransactionId(txId)\n if (!id || SEED_UID_HEX_RE.test(id)) return undefined\n return fetchArweaveRawTextAcrossGateways(id)\n}\n\n/**\n * Resolve the Html storage seed's `local_id` used for the `{localId}.html` file name.\n * `propertyValue` on the parent Html property is either that local id or the seed uid after publish.\n */\nexport async function resolveHtmlStorageSeedLocalId(\n propertyValue: string | null | undefined,\n): Promise<string | undefined> {\n const pv = String(propertyValue ?? '').trim()\n if (!pv) return undefined\n if (SEED_UID_HEX_RE.test(pv)) {\n const { findSeedRow } = await import('../db/read/findSeedRow')\n return (await findSeedRow({ uid: pv }))?.localId ?? undefined\n }\n return pv\n}\n\n/**\n * When the local draft file is gone (new device, OPFS cleared, etc.), load HTML from the\n * Html storage seed's published Arweave transaction id: a read gateway's `/raw`, then the Arweave\n * client, then a download into `html/` (named after the seed or the transaction).\n */\nasync function readHtmlBodyFromChildStorageArweave(seedLocalId: string): Promise<string | undefined> {\n const { storageSeedTransactionId } = await import('@/storageValue/resolve')\n const txId = await storageSeedTransactionId({ seedLocalId })\n if (!txId || SEED_UID_HEX_RE.test(txId)) return undefined\n\n const rawHtml = await fetchHtmlViaRawAcrossGateways(txId)\n if (rawHtml) return rawHtml\n\n try {\n const { BaseArweaveClient } = await import('@seedprotocol/arweave')\n const data = await BaseArweaveClient.getTransactionData(extractArweaveTransactionId(txId), {\n string: true,\n })\n if (typeof data === 'string' && data.length > 0) return data\n } catch {\n /* offline / bad tx id */\n }\n\n try {\n const { downloadTransactionIdWithDedupe } = await import('../events/files/download')\n await downloadTransactionIdWithDedupe(txId)\n const { findFileInDir } = await import('@/storageValue/findFile')\n const filePath = await findFileInDir('html', [`${seedLocalId}.html`, extractArweaveTransactionId(txId)])\n if (filePath) return BaseFileManager.readFileAsString(filePath)\n } catch {\n /* OPFS unsupported or download failed */\n }\n return undefined\n}\n\n/** Read saved HTML body for a parent Html property whose `propertyValue` points at the Html storage seed. */\nexport async function readHtmlBodyForStorageSeedPropertyValue(\n propertyValue: string | null | undefined,\n): Promise<string | undefined> {\n const pv = String(propertyValue ?? '').trim()\n if (!pv) return undefined\n const localId = await resolveHtmlStorageSeedLocalId(propertyValue)\n const fp = localId ? BaseFileManager.getFilesPath('html', `${localId}.html`) : ''\n let fileExists = fp ? await BaseFileManager.pathExists(fp) : false\n // OPFS: file can appear shortly after create/download; avoid false \"missing\" before hitting Arweave.\n if (!fileExists && fp) {\n await BaseFileManager.waitForFileWithContent(fp, 100, 5000).catch(() => {})\n fileExists = await BaseFileManager.pathExists(fp)\n }\n let body = fileExists && fp ? await BaseFileManager.readFileAsString(fp) : undefined\n\n if (!body && localId) {\n body = await readHtmlBodyFromChildStorageArweave(localId)\n }\n\n return body\n}\n"],"names":[],"mappings":";;;;;;AAGA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,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A,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAC,CAAA,CAAE,CAAC,GAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAS;AAEpF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAC,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAI,OAAO,CAAA,CAAE;AACpB,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAI,CAAA,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmC,CAAC,OAAO,CAAC;IAC3D;AAEA,CAAA,CAAA,CAAA,CAAA,OAAO,CAAA,CAAA,CAAA,CAAI;AACb;;"}
|
package/dist/seedSchema/index.ts
CHANGED
|
@@ -4,7 +4,6 @@ export * from './MetadataSchema'
|
|
|
4
4
|
export * from './AppStateSchema'
|
|
5
5
|
export * from './ModelSchema'
|
|
6
6
|
export * from './ModelUidSchema'
|
|
7
|
-
export * from './PropertyUidSchema'
|
|
8
7
|
export * from './ConfigSchema'
|
|
9
8
|
export * from './SchemaSchema'
|
|
10
9
|
export * from './ModelSchemaSchema'
|
|
@@ -223,6 +223,7 @@ export declare class ItemProperty<PropertyType> implements IItemProperty<Propert
|
|
|
223
223
|
* Versions stop showing the value too. Revocation is permanent.
|
|
224
224
|
* @throws ClearNotSupportedError for a Boolean or Date property without `retract`: their EAS types
|
|
225
225
|
* have no empty value.
|
|
226
|
+
* @throws EntityUnloadedError when this instance was unloaded; nothing is written.
|
|
226
227
|
*/
|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.ts","sourceRoot":"","sources":["../../../../src/browser/db/Db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAEvC,OAAO,EAAW,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AASzE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAOhD,OAAO,EAAE,UAAU,EAAoE,MAAM,MAAM,CAAA;AAInG,qBAAa,SAAU,YAAW,GAAG;IAEnC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,KAAK,EAAE,oBAAoB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAA;IAChE,eAAe,EAAE,cAAc,GAAG,SAAS,CAAA;IAC3C,+EAA+E;IAC/E,OAAO,CAAC,iBAAiB,CAA2C;IACpE,sGAAsG;IACtG,OAAO,CAAC,cAAc,CAAI;IAG1B,QAAQ;IAIR,YAAY;IAIN,SAAS,CAAC,QAAQ,EAAE,MAAM;IAWhC;;;;;;OAMG;YACW,qBAAqB;YA4BrB,eAAe;
|
|
1
|
+
{"version":3,"file":"Db.d.ts","sourceRoot":"","sources":["../../../../src/browser/db/Db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAEvC,OAAO,EAAW,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AASzE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAOhD,OAAO,EAAE,UAAU,EAAoE,MAAM,MAAM,CAAA;AAInG,qBAAa,SAAU,YAAW,GAAG;IAEnC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,KAAK,EAAE,oBAAoB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAA;IAChE,eAAe,EAAE,cAAc,GAAG,SAAS,CAAA;IAC3C,+EAA+E;IAC/E,OAAO,CAAC,iBAAiB,CAA2C;IACpE,sGAAsG;IACtG,OAAO,CAAC,cAAc,CAAI;IAG1B,QAAQ;IAIR,YAAY;IAIN,SAAS,CAAC,QAAQ,EAAE,MAAM;IAWhC;;;;;;OAMG;YACW,qBAAqB;YA4BrB,eAAe;IAsFvB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAK5B,4FAA4F;YAC9E,WAAW;IASnB,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAI3D,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAmEvD,wEAAwE;YAC1D,aAAa;IAiB3B,+GAA+G;YACjG,mBAAmB;IAoBjC;;;;;OAKG;IACG,WAAW,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,oBAAoB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAkBjG,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQjF;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,SAAS,CAAC,CAAC,EACT,KAAK,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC,GAAG,GAAG,GAC/B,UAAU,CAAC,CAAC,EAAE,CAAC;CAwEnB"}
|
|
@@ -28,6 +28,7 @@ export declare const migrationSql_0026_add_content_hash_to_schemas = "ALTER TABL
|
|
|
28
28
|
export declare const migrationSql_0027_link_metadata_property_ids = "-- Links metadata rows written without property_id to their property (decision D4: readers match\n-- rows by property_id). Only rows whose seed records its model (seeds.model_file_id) are linked,\n-- and only to one of that model's properties. Rows that match no property, or several, keep NULL\n-- and are read by name.\n--\n-- First the rows whose stored name is a property's key (unique per model).\nUPDATE `metadata` SET `property_id` = (\n SELECT `p`.`id` FROM `seeds` `s`\n JOIN `models` `m` ON `m`.`schema_file_id` = `s`.`model_file_id`\n JOIN `properties` `p` ON `p`.`model_id` = `m`.`id`\n WHERE `s`.`local_id` = `metadata`.`seed_local_id` AND `p`.`name` = `metadata`.`property_name`\n)\nWHERE `property_id` IS NULL AND EXISTS (\n SELECT 1 FROM `seeds` `s`\n JOIN `models` `m` ON `m`.`schema_file_id` = `s`.`model_file_id`\n JOIN `properties` `p` ON `p`.`model_id` = `m`.`id`\n WHERE `s`.`local_id` = `metadata`.`seed_local_id` AND `p`.`name` = `metadata`.`property_name`\n);\n--> statement-breakpoint\n-- Then the other stored forms, when exactly one property matches: `<key>Id` for an Image, File,\n-- Html or Relation, and a List of Relation's `<singular key><Ref>Ids` (singular as `key` minus a\n-- trailing `s` or `es`, or `ies` \u2192 `y`; other plurals stay NULL).\nUPDATE `metadata` SET `property_id` = (\n SELECT `p`.`id` FROM `seeds` `s`\n JOIN `models` `m` ON `m`.`schema_file_id` = `s`.`model_file_id`\n JOIN `properties` `p` ON `p`.`model_id` = `m`.`id`\n LEFT JOIN `models` `r` ON `r`.`id` = `p`.`ref_model_id`\n WHERE `s`.`local_id` = `metadata`.`seed_local_id` AND (\n (\n (`p`.`data_type` IN ('Image', 'File', 'Html', 'Relation') OR `p`.`ref_value_type` IN ('Image', 'File', 'Html', 'Relation'))\n AND `p`.`name` || 'Id' = `metadata`.`property_name`\n ) OR (\n `p`.`data_type` = 'List' AND `r`.`name` IS NOT NULL\n AND length(`metadata`.`property_name`) > length(`r`.`name`) + 3\n AND substr(`metadata`.`property_name`, -(length(`r`.`name`) + 3)) = `r`.`name` || 'Ids'\n AND (\n `p`.`name` IN (\n substr(`metadata`.`property_name`, 1, length(`metadata`.`property_name`) - length(`r`.`name`) - 3),\n substr(`metadata`.`property_name`, 1, length(`metadata`.`property_name`) - length(`r`.`name`) - 3) || 's',\n substr(`metadata`.`property_name`, 1, length(`metadata`.`property_name`) - length(`r`.`name`) - 3) || 'es'\n ) OR (\n substr(`metadata`.`property_name`, length(`metadata`.`property_name`) - length(`r`.`name`) - 3, 1) = 'y'\n AND `p`.`name` = substr(`metadata`.`property_name`, 1, length(`metadata`.`property_name`) - length(`r`.`name`) - 4) || 'ies'\n )\n )\n )\n )\n)\nWHERE `property_id` IS NULL AND (\n SELECT COUNT(*) FROM `seeds` `s`\n JOIN `models` `m` ON `m`.`schema_file_id` = `s`.`model_file_id`\n JOIN `properties` `p` ON `p`.`model_id` = `m`.`id`\n LEFT JOIN `models` `r` ON `r`.`id` = `p`.`ref_model_id`\n WHERE `s`.`local_id` = `metadata`.`seed_local_id` AND (\n (\n (`p`.`data_type` IN ('Image', 'File', 'Html', 'Relation') OR `p`.`ref_value_type` IN ('Image', 'File', 'Html', 'Relation'))\n AND `p`.`name` || 'Id' = `metadata`.`property_name`\n ) OR (\n `p`.`data_type` = 'List' AND `r`.`name` IS NOT NULL\n AND length(`metadata`.`property_name`) > length(`r`.`name`) + 3\n AND substr(`metadata`.`property_name`, -(length(`r`.`name`) + 3)) = `r`.`name` || 'Ids'\n AND (\n `p`.`name` IN (\n substr(`metadata`.`property_name`, 1, length(`metadata`.`property_name`) - length(`r`.`name`) - 3),\n substr(`metadata`.`property_name`, 1, length(`metadata`.`property_name`) - length(`r`.`name`) - 3) || 's',\n substr(`metadata`.`property_name`, 1, length(`metadata`.`property_name`) - length(`r`.`name`) - 3) || 'es'\n ) OR (\n substr(`metadata`.`property_name`, length(`metadata`.`property_name`) - length(`r`.`name`) - 3, 1) = 'y'\n AND `p`.`name` = substr(`metadata`.`property_name`, 1, length(`metadata`.`property_name`) - length(`r`.`name`) - 4) || 'ies'\n )\n )\n )\n )\n) = 1;\n";
|
|
29
29
|
export declare const migrationSql_0028_add_definition_to_properties = "ALTER TABLE `properties` ADD `definition` text;\n--> statement-breakpoint\n-- Backfill from the stored schema files: a property row takes the property object whose `id` is\n-- its schema_file_id, from the newest schema version that has one. Rows no stored file names by id\n-- keep NULL and read their definition from the columns alone.\nUPDATE `properties` SET `definition` = (\n\tSELECT `p`.`value`\n\tFROM `schemas` `s`,\n\t\tjson_each(CASE WHEN json_valid(`s`.`schema_data`) THEN `s`.`schema_data` ELSE '{}' END, '$.models') `m`,\n\t\tjson_each(`m`.`value`, '$.properties') `p`\n\tWHERE `m`.`type` = 'object'\n\t\tAND json_type(`m`.`value`, '$.properties') = 'object'\n\t\tAND `p`.`type` = 'object'\n\t\tAND json_extract(`p`.`value`, '$.id') = `properties`.`schema_file_id`\n\tORDER BY `s`.`version` DESC, `s`.`id` DESC\n\tLIMIT 1\n) WHERE `definition` IS NULL AND `schema_file_id` IS NOT NULL;\n";
|
|
30
30
|
export declare const migrationSql_0029_dedupe_chain_uids_add_unique_indexes = "-- Unique keys the writers already assume (SDK audit T9): one model_schemas link per model and\n-- schema, and one seeds / versions row per attested uid (placeholder uids are left out, see\n-- seedSchema/attestedUid.ts). Duplicates are merged first. The survivor is the row with local\n-- children (versions for a seed, metadata for a version), then the oldest; the duplicate's\n-- references move to it, columns it lacks are copied from the duplicate, and the duplicate is\n-- deleted.\nCREATE TABLE `__t9_seed_merge` (`dup_rowid` integer PRIMARY KEY, `dup` text, `keep` text);\n--> statement-breakpoint\nINSERT INTO `__t9_seed_merge` (`dup_rowid`, `dup`, `keep`)\nSELECT `rid`, `local_id`, `keep` FROM (\n SELECT `s`.`rowid` AS `rid`, `s`.`local_id`,\n first_value(`s`.`local_id`) OVER `w` AS `keep`,\n row_number() OVER `w` AS `rank`\n FROM `seeds` `s`\n WHERE `s`.`uid` IS NOT NULL AND trim(`s`.`uid`) NOT IN ('', 'NULL') AND lower(trim(`s`.`uid`)) != '0x0000000000000000000000000000000000000000000000000000000000000000'\n WINDOW `w` AS (\n PARTITION BY `s`.`uid`\n ORDER BY (`s`.`local_id` IS NULL),\n EXISTS (SELECT 1 FROM `versions` `v` WHERE `v`.`seed_local_id` = `s`.`local_id`) DESC,\n COALESCE(`s`.`created_at`, 9223372036854775807), `s`.`rowid`\n )\n)\nWHERE `rank` > 1;\n--> statement-breakpoint\nUPDATE `seeds` SET\n `schema_uid` = COALESCE(`schema_uid`, (SELECT `d`.`schema_uid` FROM `__t9_seed_merge` `m` JOIN `seeds` `d` ON `d`.`rowid` = `m`.`dup_rowid` WHERE `m`.`keep` = `seeds`.`local_id` AND `d`.`schema_uid` IS NOT NULL LIMIT 1)),\n `type` = COALESCE(`type`, (SELECT `d`.`type` FROM `__t9_seed_merge` `m` JOIN `seeds` `d` ON `d`.`rowid` = `m`.`dup_rowid` WHERE `m`.`keep` = `seeds`.`local_id` AND `d`.`type` IS NOT NULL LIMIT 1)),\n `model_file_id` = COALESCE(`model_file_id`, (SELECT `d`.`model_file_id` FROM `__t9_seed_merge` `m` JOIN `seeds` `d` ON `d`.`rowid` = `m`.`dup_rowid` WHERE `m`.`keep` = `seeds`.`local_id` AND `d`.`model_file_id` IS NOT NULL LIMIT 1)),\n `publisher` = COALESCE(`publisher`, (SELECT `d`.`publisher` FROM `__t9_seed_merge` `m` JOIN `seeds` `d` ON `d`.`rowid` = `m`.`dup_rowid` WHERE `m`.`keep` = `seeds`.`local_id` AND `d`.`publisher` IS NOT NULL LIMIT 1)),\n `attestation_raw` = COALESCE(`attestation_raw`, (SELECT `d`.`attestation_raw` FROM `__t9_seed_merge` `m` JOIN `seeds` `d` ON `d`.`rowid` = `m`.`dup_rowid` WHERE `m`.`keep` = `seeds`.`local_id` AND `d`.`attestation_raw` IS NOT NULL LIMIT 1)),\n `attestation_created_at` = COALESCE(`attestation_created_at`, (SELECT `d`.`attestation_created_at` FROM `__t9_seed_merge` `m` JOIN `seeds` `d` ON `d`.`rowid` = `m`.`dup_rowid` WHERE `m`.`keep` = `seeds`.`local_id` AND `d`.`attestation_created_at` IS NOT NULL LIMIT 1))\nWHERE `local_id` IN (SELECT `keep` FROM `__t9_seed_merge`);\n--> statement-breakpoint\n-- A property row the survivor already has (same attestation uid) is not moved.\nDELETE FROM `metadata`\nWHERE `seed_local_id` IN (SELECT `dup` FROM `__t9_seed_merge` WHERE `keep` IS NOT NULL)\n AND `metadata`.`uid` IS NOT NULL AND trim(`metadata`.`uid`) NOT IN ('', 'NULL') AND lower(trim(`metadata`.`uid`)) != '0x0000000000000000000000000000000000000000000000000000000000000000'\n AND EXISTS (\n SELECT 1 FROM `metadata` `k` JOIN `__t9_seed_merge` `m` ON `k`.`seed_local_id` = `m`.`keep`\n WHERE `m`.`dup` = `metadata`.`seed_local_id` AND `k`.`uid` = `metadata`.`uid`\n );\n--> statement-breakpoint\nUPDATE `metadata` SET `seed_local_id` = (SELECT `keep` FROM `__t9_seed_merge` WHERE `dup` = `metadata`.`seed_local_id`)\nWHERE `seed_local_id` IN (SELECT `dup` FROM `__t9_seed_merge` WHERE `keep` IS NOT NULL);\n--> statement-breakpoint\nUPDATE `versions` SET `seed_local_id` = (SELECT `keep` FROM `__t9_seed_merge` WHERE `dup` = `versions`.`seed_local_id`)\nWHERE `seed_local_id` IN (SELECT `dup` FROM `__t9_seed_merge` WHERE `keep` IS NOT NULL);\n--> statement-breakpoint\nUPDATE `pending_writes` SET `seed_local_id` = (SELECT `keep` FROM `__t9_seed_merge` WHERE `dup` = `pending_writes`.`seed_local_id`)\nWHERE `seed_local_id` IN (SELECT `dup` FROM `__t9_seed_merge` WHERE `keep` IS NOT NULL);\n--> statement-breakpoint\nUPDATE `publish_processes` SET `seed_local_id` = (SELECT `keep` FROM `__t9_seed_merge` WHERE `dup` = `publish_processes`.`seed_local_id`)\nWHERE `seed_local_id` IN (SELECT `dup` FROM `__t9_seed_merge` WHERE `keep` IS NOT NULL);\n--> statement-breakpoint\nUPDATE `arweave_l1_finalize_jobs` SET `seed_local_id` = (SELECT `keep` FROM `__t9_seed_merge` WHERE `dup` = `arweave_l1_finalize_jobs`.`seed_local_id`)\nWHERE `seed_local_id` IN (SELECT `dup` FROM `__t9_seed_merge` WHERE `keep` IS NOT NULL);\n--> statement-breakpoint\nUPDATE `html_embedded_image_co_publish` SET `image_seed_local_id` = (SELECT `keep` FROM `__t9_seed_merge` WHERE `dup` = `html_embedded_image_co_publish`.`image_seed_local_id`)\nWHERE `image_seed_local_id` IN (SELECT `dup` FROM `__t9_seed_merge` WHERE `keep` IS NOT NULL);\n--> statement-breakpoint\nUPDATE OR IGNORE `html_embedded_image_co_publish` SET `parent_seed_local_id` = (SELECT `keep` FROM `__t9_seed_merge` WHERE `dup` = `html_embedded_image_co_publish`.`parent_seed_local_id`)\nWHERE `parent_seed_local_id` IN (SELECT `dup` FROM `__t9_seed_merge` WHERE `keep` IS NOT NULL);\n--> statement-breakpoint\nDELETE FROM `html_embedded_image_co_publish` WHERE `parent_seed_local_id` IN (SELECT `dup` FROM `__t9_seed_merge` WHERE `keep` IS NOT NULL);\n--> statement-breakpoint\nUPDATE OR IGNORE `html_embedded_image_co_publish` SET `html_seed_local_id` = (SELECT `keep` FROM `__t9_seed_merge` WHERE `dup` = `html_embedded_image_co_publish`.`html_seed_local_id`)\nWHERE `html_seed_local_id` IN (SELECT `dup` FROM `__t9_seed_merge` WHERE `keep` IS NOT NULL);\n--> statement-breakpoint\nDELETE FROM `html_embedded_image_co_publish` WHERE `html_seed_local_id` IN (SELECT `dup` FROM `__t9_seed_merge` WHERE `keep` IS NOT NULL);\n--> statement-breakpoint\nDELETE FROM `seeds` WHERE `rowid` IN (SELECT `dup_rowid` FROM `__t9_seed_merge`);\n--> statement-breakpoint\nDROP TABLE `__t9_seed_merge`;\n--> statement-breakpoint\nCREATE TABLE `__t9_version_merge` (`dup_rowid` integer PRIMARY KEY, `dup` text, `keep` text);\n--> statement-breakpoint\nINSERT INTO `__t9_version_merge` (`dup_rowid`, `dup`, `keep`)\nSELECT `rid`, `local_id`, `keep` FROM (\n SELECT `v`.`rowid` AS `rid`, `v`.`local_id`,\n first_value(`v`.`local_id`) OVER `w` AS `keep`,\n row_number() OVER `w` AS `rank`\n FROM `versions` `v`\n WHERE `v`.`uid` IS NOT NULL AND trim(`v`.`uid`) NOT IN ('', 'NULL') AND lower(trim(`v`.`uid`)) != '0x0000000000000000000000000000000000000000000000000000000000000000'\n WINDOW `w` AS (\n PARTITION BY `v`.`uid`\n ORDER BY (`v`.`local_id` IS NULL),\n EXISTS (SELECT 1 FROM `metadata` `md` WHERE `md`.`version_local_id` = `v`.`local_id`) DESC,\n COALESCE(`v`.`created_at`, 9223372036854775807), `v`.`rowid`\n )\n)\nWHERE `rank` > 1;\n--> statement-breakpoint\nUPDATE `versions` SET\n `seed_uid` = COALESCE(`seed_uid`, (SELECT `d`.`seed_uid` FROM `__t9_version_merge` `m` JOIN `versions` `d` ON `d`.`rowid` = `m`.`dup_rowid` WHERE `m`.`keep` = `versions`.`local_id` AND `d`.`seed_uid` IS NOT NULL LIMIT 1)),\n `seed_type` = COALESCE(`seed_type`, (SELECT `d`.`seed_type` FROM `__t9_version_merge` `m` JOIN `versions` `d` ON `d`.`rowid` = `m`.`dup_rowid` WHERE `m`.`keep` = `versions`.`local_id` AND `d`.`seed_type` IS NOT NULL LIMIT 1)),\n `attestation_raw` = COALESCE(`attestation_raw`, (SELECT `d`.`attestation_raw` FROM `__t9_version_merge` `m` JOIN `versions` `d` ON `d`.`rowid` = `m`.`dup_rowid` WHERE `m`.`keep` = `versions`.`local_id` AND `d`.`attestation_raw` IS NOT NULL LIMIT 1)),\n `attestation_created_at` = COALESCE(`attestation_created_at`, (SELECT `d`.`attestation_created_at` FROM `__t9_version_merge` `m` JOIN `versions` `d` ON `d`.`rowid` = `m`.`dup_rowid` WHERE `m`.`keep` = `versions`.`local_id` AND `d`.`attestation_created_at` IS NOT NULL LIMIT 1)),\n `publisher` = COALESCE(`publisher`, (SELECT `d`.`publisher` FROM `__t9_version_merge` `m` JOIN `versions` `d` ON `d`.`rowid` = `m`.`dup_rowid` WHERE `m`.`keep` = `versions`.`local_id` AND `d`.`publisher` IS NOT NULL LIMIT 1)),\n `revoked_at` = COALESCE(`revoked_at`, (SELECT `d`.`revoked_at` FROM `__t9_version_merge` `m` JOIN `versions` `d` ON `d`.`rowid` = `m`.`dup_rowid` WHERE `m`.`keep` = `versions`.`local_id` AND `d`.`revoked_at` IS NOT NULL LIMIT 1))\nWHERE `local_id` IN (SELECT `keep` FROM `__t9_version_merge`);\n--> statement-breakpoint\nUPDATE `metadata` SET `version_local_id` = (SELECT `keep` FROM `__t9_version_merge` WHERE `dup` = `metadata`.`version_local_id`)\nWHERE `version_local_id` IN (SELECT `dup` FROM `__t9_version_merge` WHERE `keep` IS NOT NULL);\n--> statement-breakpoint\nUPDATE `arweave_l1_finalize_jobs` SET `version_local_id` = (SELECT `keep` FROM `__t9_version_merge` WHERE `dup` = `arweave_l1_finalize_jobs`.`version_local_id`)\nWHERE `version_local_id` IN (SELECT `dup` FROM `__t9_version_merge` WHERE `keep` IS NOT NULL);\n--> statement-breakpoint\nDELETE FROM `versions` WHERE `rowid` IN (SELECT `dup_rowid` FROM `__t9_version_merge`);\n--> statement-breakpoint\nDROP TABLE `__t9_version_merge`;\n--> statement-breakpoint\nDELETE FROM `model_schemas`\nWHERE `model_id` IS NOT NULL AND `schema_id` IS NOT NULL\n AND `id` NOT IN (SELECT MIN(`id`) FROM `model_schemas` GROUP BY `model_id`, `schema_id`);\n--> statement-breakpoint\nCREATE UNIQUE INDEX `model_schemas_model_id_schema_id_unique` ON `model_schemas` (`model_id`,`schema_id`);\n--> statement-breakpoint\nCREATE UNIQUE INDEX `seeds_attested_uid_unique` ON `seeds` (`uid`) WHERE \"seeds\".\"uid\" IS NOT NULL AND trim(\"seeds\".\"uid\") NOT IN ('', 'NULL') AND lower(trim(\"seeds\".\"uid\")) != '0x0000000000000000000000000000000000000000000000000000000000000000';\n--> statement-breakpoint\nCREATE UNIQUE INDEX `versions_attested_uid_unique` ON `versions` (`uid`) WHERE \"versions\".\"uid\" IS NOT NULL AND trim(\"versions\".\"uid\") NOT IN ('', 'NULL') AND lower(trim(\"versions\".\"uid\")) != '0x0000000000000000000000000000000000000000000000000000000000000000';\n";
|
|
31
|
-
export declare const
|
|
32
|
-
export declare const snapshotJson = "{\n \"version\": \"6\",\n \"dialect\": \"sqlite\",\n \"id\": \"0937d0b1-f4ea-4ae1-885b-7173e7b786b9\",\n \"prevId\": \"083c3909-4feb-4b61-bf23-fa806a60b826\",\n \"tables\": {\n \"appState\": {\n \"name\": \"appState\",\n \"columns\": {\n \"key\": {\n \"name\": \"key\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"value\": {\n \"name\": \"value\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"appState_key_unique\": {\n \"name\": \"appState_key_unique\",\n \"columns\": [\n \"key\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"arweave_l1_finalize_jobs\": {\n \"name\": \"arweave_l1_finalize_jobs\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"seed_local_id\": {\n \"name\": \"seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"data_item_id\": {\n \"name\": \"data_item_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"l1_transaction_id\": {\n \"name\": \"l1_transaction_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"bundle_id\": {\n \"name\": \"bundle_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"version_local_id\": {\n \"name\": \"version_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"item_property_name\": {\n \"name\": \"item_property_name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"phase\": {\n \"name\": \"phase\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"status_json\": {\n \"name\": \"status_json\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"error_message\": {\n \"name\": \"error_message\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"arweave_l1_finalize_jobs_data_item_id_unique\": {\n \"name\": \"arweave_l1_finalize_jobs_data_item_id_unique\",\n \"columns\": [\n \"data_item_id\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"config\": {\n \"name\": \"config\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"key\": {\n \"name\": \"key\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"text\": {\n \"name\": \"text\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"json\": {\n \"name\": \"json\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"blob\": {\n \"name\": \"blob\",\n \"type\": \"blob\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {},\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"eas_sync_processes\": {\n \"name\": \"eas_sync_processes\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"status\": {\n \"name\": \"status\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"started_at\": {\n \"name\": \"started_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"completed_at\": {\n \"name\": \"completed_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"request_payload\": {\n \"name\": \"request_payload\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"error_message\": {\n \"name\": \"error_message\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"error_details\": {\n \"name\": \"error_details\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"persisted_snapshot\": {\n \"name\": \"persisted_snapshot\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {},\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"entity_changes\": {\n \"name\": \"entity_changes\",\n \"columns\": {\n \"seq\": {\n \"name\": \"seq\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"tbl\": {\n \"name\": \"tbl\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"seed_local_id\": {\n \"name\": \"seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"seed_uid\": {\n \"name\": \"seed_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"property_name\": {\n \"name\": \"property_name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"at\": {\n \"name\": \"at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"entity_changes_at\": {\n \"name\": \"entity_changes_at\",\n \"columns\": [\n \"at\"\n ],\n \"isUnique\": false\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"html_embedded_image_co_publish\": {\n \"name\": \"html_embedded_image_co_publish\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"parent_seed_local_id\": {\n \"name\": \"parent_seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"html_seed_local_id\": {\n \"name\": \"html_seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"image_seed_local_id\": {\n \"name\": \"image_seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"stable_key\": {\n \"name\": \"stable_key\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"html_embed_co_pub_parent_html_stable\": {\n \"name\": \"html_embed_co_pub_parent_html_stable\",\n \"columns\": [\n \"parent_seed_local_id\",\n \"html_seed_local_id\",\n \"stable_key\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"metadata\": {\n \"name\": \"metadata\",\n \"columns\": {\n \"local_id\": {\n \"name\": \"local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"uid\": {\n \"name\": \"uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"property_id\": {\n \"name\": \"property_id\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"property_name\": {\n \"name\": \"property_name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"property_value\": {\n \"name\": \"property_value\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"schema_uid\": {\n \"name\": \"schema_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"model_type\": {\n \"name\": \"model_type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"seed_local_id\": {\n \"name\": \"seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"seed_uid\": {\n \"name\": \"seed_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"version_local_id\": {\n \"name\": \"version_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"version_uid\": {\n \"name\": \"version_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"eas_data_type\": {\n \"name\": \"eas_data_type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"ref_value_type\": {\n \"name\": \"ref_value_type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"ref_schema_uid\": {\n \"name\": \"ref_schema_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"ref_seed_type\": {\n \"name\": \"ref_seed_type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"ref_resolved_value\": {\n \"name\": \"ref_resolved_value\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"ref_resolved_display_value\": {\n \"name\": \"ref_resolved_display_value\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"local_storage_dir\": {\n \"name\": \"local_storage_dir\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"attestation_raw\": {\n \"name\": \"attestation_raw\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"attestation_created_at\": {\n \"name\": \"attestation_created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"content_hash\": {\n \"name\": \"content_hash\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"publisher\": {\n \"name\": \"publisher\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"revoked_at\": {\n \"name\": \"revoked_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"derived_from_uid\": {\n \"name\": \"derived_from_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"retract\": {\n \"name\": \"retract\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"metadata_local_id_unique\": {\n \"name\": \"metadata_local_id_unique\",\n \"columns\": [\n \"local_id\"\n ],\n \"isUnique\": true\n },\n \"metadata_seed_local_id_property_name_idx\": {\n \"name\": \"metadata_seed_local_id_property_name_idx\",\n \"columns\": [\n \"seed_local_id\",\n \"property_name\"\n ],\n \"isUnique\": false\n },\n \"metadata_seed_uid_idx\": {\n \"name\": \"metadata_seed_uid_idx\",\n \"columns\": [\n \"seed_uid\"\n ],\n \"isUnique\": false\n }\n },\n \"foreignKeys\": {\n \"metadata_property_id_properties_id_fk\": {\n \"name\": \"metadata_property_id_properties_id_fk\",\n \"tableFrom\": \"metadata\",\n \"tableTo\": \"properties\",\n \"columnsFrom\": [\n \"property_id\"\n ],\n \"columnsTo\": [\n \"id\"\n ],\n \"onDelete\": \"no action\",\n \"onUpdate\": \"no action\"\n }\n },\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"models\": {\n \"name\": \"models\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"name\": {\n \"name\": \"name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"schema_file_id\": {\n \"name\": \"schema_file_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"is_edited\": {\n \"name\": \"is_edited\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"unique_schema_file_id\": {\n \"name\": \"unique_schema_file_id\",\n \"columns\": [\n \"schema_file_id\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"properties\": {\n \"name\": \"properties\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"name\": {\n \"name\": \"name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"data_type\": {\n \"name\": \"data_type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"model_id\": {\n \"name\": \"model_id\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"ref_model_id\": {\n \"name\": \"ref_model_id\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"ref_value_type\": {\n \"name\": \"ref_value_type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"schema_file_id\": {\n \"name\": \"schema_file_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"is_edited\": {\n \"name\": \"is_edited\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"required\": {\n \"name\": \"required\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"storage_type\": {\n \"name\": \"storage_type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"local_storage_dir\": {\n \"name\": \"local_storage_dir\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"filename_suffix\": {\n \"name\": \"filename_suffix\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"definition\": {\n \"name\": \"definition\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"unique_name_model_id\": {\n \"name\": \"unique_name_model_id\",\n \"columns\": [\n \"name\",\n \"model_id\"\n ],\n \"isUnique\": true\n },\n \"unique_property_schema_file_id\": {\n \"name\": \"unique_property_schema_file_id\",\n \"columns\": [\n \"schema_file_id\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {\n \"properties_model_id_models_id_fk\": {\n \"name\": \"properties_model_id_models_id_fk\",\n \"tableFrom\": \"properties\",\n \"tableTo\": \"models\",\n \"columnsFrom\": [\n \"model_id\"\n ],\n \"columnsTo\": [\n \"id\"\n ],\n \"onDelete\": \"no action\",\n \"onUpdate\": \"no action\"\n },\n \"properties_ref_model_id_models_id_fk\": {\n \"name\": \"properties_ref_model_id_models_id_fk\",\n \"tableFrom\": \"properties\",\n \"tableTo\": \"models\",\n \"columnsFrom\": [\n \"ref_model_id\"\n ],\n \"columnsTo\": [\n \"id\"\n ],\n \"onDelete\": \"no action\",\n \"onUpdate\": \"no action\"\n }\n },\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"model_schemas\": {\n \"name\": \"model_schemas\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"model_id\": {\n \"name\": \"model_id\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"schema_id\": {\n \"name\": \"schema_id\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"model_schemas_model_id_schema_id_unique\": {\n \"name\": \"model_schemas_model_id_schema_id_unique\",\n \"columns\": [\n \"model_id\",\n \"schema_id\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {\n \"model_schemas_model_id_models_id_fk\": {\n \"name\": \"model_schemas_model_id_models_id_fk\",\n \"tableFrom\": \"model_schemas\",\n \"tableTo\": \"models\",\n \"columnsFrom\": [\n \"model_id\"\n ],\n \"columnsTo\": [\n \"id\"\n ],\n \"onDelete\": \"no action\",\n \"onUpdate\": \"no action\"\n },\n \"model_schemas_schema_id_schemas_id_fk\": {\n \"name\": \"model_schemas_schema_id_schemas_id_fk\",\n \"tableFrom\": \"model_schemas\",\n \"tableTo\": \"schemas\",\n \"columnsFrom\": [\n \"schema_id\"\n ],\n \"columnsTo\": [\n \"id\"\n ],\n \"onDelete\": \"no action\",\n \"onUpdate\": \"no action\"\n }\n },\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"model_uids\": {\n \"name\": \"model_uids\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"uid\": {\n \"name\": \"uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"model_id\": {\n \"name\": \"model_id\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"model_uids_model_id_unique\": {\n \"name\": \"model_uids_model_id_unique\",\n \"columns\": [\n \"model_id\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {\n \"model_uids_model_id_models_id_fk\": {\n \"name\": \"model_uids_model_id_models_id_fk\",\n \"tableFrom\": \"model_uids\",\n \"tableTo\": \"models\",\n \"columnsFrom\": [\n \"model_id\"\n ],\n \"columnsTo\": [\n \"id\"\n ],\n \"onDelete\": \"no action\",\n \"onUpdate\": \"no action\"\n }\n },\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"pending_writes\": {\n \"name\": \"pending_writes\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"op_id\": {\n \"name\": \"op_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"group_id\": {\n \"name\": \"group_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"seed_local_id\": {\n \"name\": \"seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"property_name\": {\n \"name\": \"property_name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"kind\": {\n \"name\": \"kind\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"value\": {\n \"name\": \"value\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"value_ref\": {\n \"name\": \"value_ref\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"base_row_id\": {\n \"name\": \"base_row_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"base_uid\": {\n \"name\": \"base_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"tab_id\": {\n \"name\": \"tab_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"status\": {\n \"name\": \"status\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"error\": {\n \"name\": \"error\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"error_name\": {\n \"name\": \"error_name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"attempts\": {\n \"name\": \"attempts\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false,\n \"default\": 0\n },\n \"applied_at\": {\n \"name\": \"applied_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"result\": {\n \"name\": \"result\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"conflict\": {\n \"name\": \"conflict\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"conflict_resolved_at\": {\n \"name\": \"conflict_resolved_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"pending_writes_op_id_unique\": {\n \"name\": \"pending_writes_op_id_unique\",\n \"columns\": [\n \"op_id\"\n ],\n \"isUnique\": true\n },\n \"pending_writes_drain_order\": {\n \"name\": \"pending_writes_drain_order\",\n \"columns\": [\n \"status\",\n \"seed_local_id\",\n \"property_name\",\n \"created_at\"\n ],\n \"isUnique\": false\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"property_uids\": {\n \"name\": \"property_uids\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"uid\": {\n \"name\": \"uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"property_id\": {\n \"name\": \"property_id\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"property_uids_property_id_unique\": {\n \"name\": \"property_uids_property_id_unique\",\n \"columns\": [\n \"property_id\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {\n \"property_uids_property_id_properties_id_fk\": {\n \"name\": \"property_uids_property_id_properties_id_fk\",\n \"tableFrom\": \"property_uids\",\n \"tableTo\": \"properties\",\n \"columnsFrom\": [\n \"property_id\"\n ],\n \"columnsTo\": [\n \"id\"\n ],\n \"onDelete\": \"no action\",\n \"onUpdate\": \"no action\"\n }\n },\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"publish_processes\": {\n \"name\": \"publish_processes\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"seed_local_id\": {\n \"name\": \"seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"model_name\": {\n \"name\": \"model_name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"schema_id\": {\n \"name\": \"schema_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"status\": {\n \"name\": \"status\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"started_at\": {\n \"name\": \"started_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"completed_at\": {\n \"name\": \"completed_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"error_message\": {\n \"name\": \"error_message\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"error_step\": {\n \"name\": \"error_step\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"error_details\": {\n \"name\": \"error_details\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"error_code\": {\n \"name\": \"error_code\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"persisted_snapshot\": {\n \"name\": \"persisted_snapshot\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"seed_id\": {\n \"name\": \"seed_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"existing_seed_uid\": {\n \"name\": \"existing_seed_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {},\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"schemas\": {\n \"name\": \"schemas\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"name\": {\n \"name\": \"name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"version\": {\n \"name\": \"version\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"schema_file_id\": {\n \"name\": \"schema_file_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"schema_data\": {\n \"name\": \"schema_data\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"is_draft\": {\n \"name\": \"is_draft\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"is_edited\": {\n \"name\": \"is_edited\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"content_hash\": {\n \"name\": \"content_hash\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"unique_schema_schema_file_id\": {\n \"name\": \"unique_schema_schema_file_id\",\n \"columns\": [\n \"schema_file_id\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"seeds\": {\n \"name\": \"seeds\",\n \"columns\": {\n \"local_id\": {\n \"name\": \"local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"uid\": {\n \"name\": \"uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"schema_uid\": {\n \"name\": \"schema_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"type\": {\n \"name\": \"type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"model_file_id\": {\n \"name\": \"model_file_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"publisher\": {\n \"name\": \"publisher\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"attestation_raw\": {\n \"name\": \"attestation_raw\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"attestation_created_at\": {\n \"name\": \"attestation_created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"_marked_for_deletion\": {\n \"name\": \"_marked_for_deletion\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"revoked_at\": {\n \"name\": \"revoked_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"seeds_local_id_unique\": {\n \"name\": \"seeds_local_id_unique\",\n \"columns\": [\n \"local_id\"\n ],\n \"isUnique\": true\n },\n \"seeds_uid_idx\": {\n \"name\": \"seeds_uid_idx\",\n \"columns\": [\n \"uid\"\n ],\n \"isUnique\": false\n },\n \"seeds_type_idx\": {\n \"name\": \"seeds_type_idx\",\n \"columns\": [\n \"type\"\n ],\n \"isUnique\": false\n },\n \"seeds_attested_uid_unique\": {\n \"name\": \"seeds_attested_uid_unique\",\n \"columns\": [\n \"uid\"\n ],\n \"isUnique\": true,\n \"where\": \"\\\"seeds\\\".\\\"uid\\\" IS NOT NULL AND trim(\\\"seeds\\\".\\\"uid\\\") NOT IN ('', 'NULL') AND lower(trim(\\\"seeds\\\".\\\"uid\\\")) != '0x0000000000000000000000000000000000000000000000000000000000000000'\"\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"upload_processes\": {\n \"name\": \"upload_processes\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"reimbursement_confirmed\": {\n \"name\": \"reimbursement_confirmed\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"reimbursement_transaction_id\": {\n \"name\": \"reimbursement_transaction_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"transaction_keys\": {\n \"name\": \"transaction_keys\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"persisted_snapshot\": {\n \"name\": \"persisted_snapshot\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {},\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"versions\": {\n \"name\": \"versions\",\n \"columns\": {\n \"local_id\": {\n \"name\": \"local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"uid\": {\n \"name\": \"uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"seed_local_id\": {\n \"name\": \"seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"seed_uid\": {\n \"name\": \"seed_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"seed_type\": {\n \"name\": \"seed_type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"note\": {\n \"name\": \"note\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"attestation_created_at\": {\n \"name\": \"attestation_created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"attestation_raw\": {\n \"name\": \"attestation_raw\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"publisher\": {\n \"name\": \"publisher\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"revoked_at\": {\n \"name\": \"revoked_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"versions_local_id_unique\": {\n \"name\": \"versions_local_id_unique\",\n \"columns\": [\n \"local_id\"\n ],\n \"isUnique\": true\n },\n \"versions_seed_local_id_idx\": {\n \"name\": \"versions_seed_local_id_idx\",\n \"columns\": [\n \"seed_local_id\"\n ],\n \"isUnique\": false\n },\n \"versions_attested_uid_unique\": {\n \"name\": \"versions_attested_uid_unique\",\n \"columns\": [\n \"uid\"\n ],\n \"isUnique\": true,\n \"where\": \"\\\"versions\\\".\\\"uid\\\" IS NOT NULL AND trim(\\\"versions\\\".\\\"uid\\\") NOT IN ('', 'NULL') AND lower(trim(\\\"versions\\\".\\\"uid\\\")) != '0x0000000000000000000000000000000000000000000000000000000000000000'\"\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n }\n },\n \"views\": {},\n \"enums\": {},\n \"_meta\": {\n \"schemas\": {},\n \"tables\": {},\n \"columns\": {}\n },\n \"internal\": {\n \"indexes\": {}\n }\n}";
|
|
31
|
+
export declare const migrationSql_0030_drop_property_uids = "DROP TABLE `property_uids`;";
|
|
32
|
+
export declare const journalJson = "{\n \"version\": \"7\",\n \"dialect\": \"sqlite\",\n \"entries\": [\n {\n \"idx\": 0,\n \"version\": \"6\",\n \"when\": 1765976502903,\n \"tag\": \"0000_married_malice\",\n \"breakpoints\": true\n },\n {\n \"idx\": 1,\n \"version\": \"6\",\n \"when\": 1766010851770,\n \"tag\": \"0001_sweet_bruce_banner\",\n \"breakpoints\": true\n },\n {\n \"idx\": 2,\n \"version\": \"6\",\n \"when\": 1767621120087,\n \"tag\": \"0002_bitter_proudstar\",\n \"breakpoints\": true\n },\n {\n \"idx\": 3,\n \"version\": \"6\",\n \"when\": 1768415440282,\n \"tag\": \"0003_cultured_senator_kelly\",\n \"breakpoints\": true\n },\n {\n \"idx\": 4,\n \"version\": \"6\",\n \"when\": 1768500000000,\n \"tag\": \"0004_add_publisher_to_seeds\",\n \"breakpoints\": true\n },\n {\n \"idx\": 5,\n \"version\": \"6\",\n \"when\": 1772489937031,\n \"tag\": \"0005_bright_lily_hollister\",\n \"breakpoints\": true\n },\n {\n \"idx\": 6,\n \"version\": \"6\",\n \"when\": 1772600000000,\n \"tag\": \"0006_add_publisher_to_versions_and_metadata\",\n \"breakpoints\": true\n },\n {\n \"idx\": 7,\n \"version\": \"6\",\n \"when\": 1772700000000,\n \"tag\": \"0007_add_required_to_properties\",\n \"breakpoints\": true\n },\n {\n \"idx\": 8,\n \"version\": \"6\",\n \"when\": 1772800000000,\n \"tag\": \"0008_add_revoked_at_to_seeds\",\n \"breakpoints\": true\n },\n {\n \"idx\": 9,\n \"version\": \"6\",\n \"when\": 1773924021107,\n \"tag\": \"0009_happy_namor\",\n \"breakpoints\": true\n },\n {\n \"idx\": 10,\n \"version\": \"6\",\n \"when\": 1774000000000,\n \"tag\": \"0010_add_arweave_l1_finalize_jobs\",\n \"breakpoints\": true\n },\n {\n \"idx\": 11,\n \"version\": \"6\",\n \"when\": 1774100000000,\n \"tag\": \"0011_normalize_placeholder_uids\",\n \"breakpoints\": true\n },\n {\n \"idx\": 12,\n \"version\": \"6\",\n \"when\": 1774200000000,\n \"tag\": \"0012_html_embedded_image_co_publish\",\n \"breakpoints\": true\n },\n {\n \"idx\": 13,\n \"version\": \"6\",\n \"when\": 1774300000000,\n \"tag\": \"0013_eas_sync_processes\",\n \"breakpoints\": true\n },\n {\n \"idx\": 14,\n \"version\": \"6\",\n \"when\": 1774400000000,\n \"tag\": \"0014_add_error_code_to_publish_processes\",\n \"breakpoints\": true\n },\n {\n \"idx\": 15,\n \"version\": \"6\",\n \"when\": 1774500000000,\n \"tag\": \"0015_add_model_file_id_to_seeds\",\n \"breakpoints\": true\n },\n {\n \"idx\": 16,\n \"version\": \"6\",\n \"when\": 1774600000000,\n \"tag\": \"0016_add_revoked_at_to_metadata\",\n \"breakpoints\": true\n },\n {\n \"idx\": 17,\n \"version\": \"6\",\n \"when\": 1774700000000,\n \"tag\": \"0017_add_revoked_at_to_versions\",\n \"breakpoints\": true\n },\n {\n \"idx\": 18,\n \"version\": \"6\",\n \"when\": 1774800000000,\n \"tag\": \"0018_add_storage_settings_to_properties\",\n \"breakpoints\": true\n },\n {\n \"idx\": 19,\n \"version\": \"6\",\n \"when\": 1774900000000,\n \"tag\": \"0019_add_derived_from_uid_to_metadata\",\n \"breakpoints\": true\n },\n {\n \"idx\": 20,\n \"version\": \"6\",\n \"when\": 1792354539632,\n \"tag\": \"0020_add_pending_writes\",\n \"breakpoints\": true\n },\n {\n \"idx\": 21,\n \"version\": \"6\",\n \"when\": 1792414753260,\n \"tag\": \"0021_add_pending_write_error_name\",\n \"breakpoints\": true\n },\n {\n \"idx\": 22,\n \"version\": \"6\",\n \"when\": 1792453791787,\n \"tag\": \"0022_add_read_indexes\",\n \"breakpoints\": true\n },\n {\n \"idx\": 23,\n \"version\": \"6\",\n \"when\": 1792455641631,\n \"tag\": \"0023_add_entity_changes\",\n \"breakpoints\": true\n },\n {\n \"idx\": 24,\n \"version\": \"6\",\n \"when\": 1792576238054,\n \"tag\": \"0024_merge_republished_ghost_seeds\",\n \"breakpoints\": true\n },\n {\n \"idx\": 25,\n \"version\": \"6\",\n \"when\": 1792585560172,\n \"tag\": \"0025_add_metadata_retract\",\n \"breakpoints\": true\n },\n {\n \"idx\": 26,\n \"version\": \"6\",\n \"when\": 1792587787468,\n \"tag\": \"0026_add_content_hash_to_schemas\",\n \"breakpoints\": true\n },\n {\n \"idx\": 27,\n \"version\": \"6\",\n \"when\": 1792587787964,\n \"tag\": \"0027_link_metadata_property_ids\",\n \"breakpoints\": true\n },\n {\n \"idx\": 28,\n \"version\": \"6\",\n \"when\": 1792596417502,\n \"tag\": \"0028_add_definition_to_properties\",\n \"breakpoints\": true\n },\n {\n \"idx\": 29,\n \"version\": \"6\",\n \"when\": 1792596480144,\n \"tag\": \"0029_dedupe_chain_uids_add_unique_indexes\",\n \"breakpoints\": true\n },\n {\n \"idx\": 30,\n \"version\": \"6\",\n \"when\": 1792866514704,\n \"tag\": \"0030_drop_property_uids\",\n \"breakpoints\": true\n }\n ]\n}";
|
|
33
|
+
export declare const snapshotJson = "{\n \"version\": \"6\",\n \"dialect\": \"sqlite\",\n \"id\": \"b6717ca6-f22d-4440-a51d-27a3aba4eb0e\",\n \"prevId\": \"0937d0b1-f4ea-4ae1-885b-7173e7b786b9\",\n \"tables\": {\n \"appState\": {\n \"name\": \"appState\",\n \"columns\": {\n \"key\": {\n \"name\": \"key\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"value\": {\n \"name\": \"value\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"appState_key_unique\": {\n \"name\": \"appState_key_unique\",\n \"columns\": [\n \"key\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"arweave_l1_finalize_jobs\": {\n \"name\": \"arweave_l1_finalize_jobs\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"seed_local_id\": {\n \"name\": \"seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"data_item_id\": {\n \"name\": \"data_item_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"l1_transaction_id\": {\n \"name\": \"l1_transaction_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"bundle_id\": {\n \"name\": \"bundle_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"version_local_id\": {\n \"name\": \"version_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"item_property_name\": {\n \"name\": \"item_property_name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"phase\": {\n \"name\": \"phase\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"status_json\": {\n \"name\": \"status_json\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"error_message\": {\n \"name\": \"error_message\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"arweave_l1_finalize_jobs_data_item_id_unique\": {\n \"name\": \"arweave_l1_finalize_jobs_data_item_id_unique\",\n \"columns\": [\n \"data_item_id\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"config\": {\n \"name\": \"config\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"key\": {\n \"name\": \"key\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"text\": {\n \"name\": \"text\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"json\": {\n \"name\": \"json\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"blob\": {\n \"name\": \"blob\",\n \"type\": \"blob\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {},\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"eas_sync_processes\": {\n \"name\": \"eas_sync_processes\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"status\": {\n \"name\": \"status\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"started_at\": {\n \"name\": \"started_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"completed_at\": {\n \"name\": \"completed_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"request_payload\": {\n \"name\": \"request_payload\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"error_message\": {\n \"name\": \"error_message\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"error_details\": {\n \"name\": \"error_details\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"persisted_snapshot\": {\n \"name\": \"persisted_snapshot\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {},\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"entity_changes\": {\n \"name\": \"entity_changes\",\n \"columns\": {\n \"seq\": {\n \"name\": \"seq\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"tbl\": {\n \"name\": \"tbl\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"seed_local_id\": {\n \"name\": \"seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"seed_uid\": {\n \"name\": \"seed_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"property_name\": {\n \"name\": \"property_name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"at\": {\n \"name\": \"at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"entity_changes_at\": {\n \"name\": \"entity_changes_at\",\n \"columns\": [\n \"at\"\n ],\n \"isUnique\": false\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"html_embedded_image_co_publish\": {\n \"name\": \"html_embedded_image_co_publish\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"parent_seed_local_id\": {\n \"name\": \"parent_seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"html_seed_local_id\": {\n \"name\": \"html_seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"image_seed_local_id\": {\n \"name\": \"image_seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"stable_key\": {\n \"name\": \"stable_key\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"html_embed_co_pub_parent_html_stable\": {\n \"name\": \"html_embed_co_pub_parent_html_stable\",\n \"columns\": [\n \"parent_seed_local_id\",\n \"html_seed_local_id\",\n \"stable_key\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"metadata\": {\n \"name\": \"metadata\",\n \"columns\": {\n \"local_id\": {\n \"name\": \"local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"uid\": {\n \"name\": \"uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"property_id\": {\n \"name\": \"property_id\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"property_name\": {\n \"name\": \"property_name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"property_value\": {\n \"name\": \"property_value\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"schema_uid\": {\n \"name\": \"schema_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"model_type\": {\n \"name\": \"model_type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"seed_local_id\": {\n \"name\": \"seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"seed_uid\": {\n \"name\": \"seed_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"version_local_id\": {\n \"name\": \"version_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"version_uid\": {\n \"name\": \"version_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"eas_data_type\": {\n \"name\": \"eas_data_type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"ref_value_type\": {\n \"name\": \"ref_value_type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"ref_schema_uid\": {\n \"name\": \"ref_schema_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"ref_seed_type\": {\n \"name\": \"ref_seed_type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"ref_resolved_value\": {\n \"name\": \"ref_resolved_value\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"ref_resolved_display_value\": {\n \"name\": \"ref_resolved_display_value\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"local_storage_dir\": {\n \"name\": \"local_storage_dir\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"attestation_raw\": {\n \"name\": \"attestation_raw\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"attestation_created_at\": {\n \"name\": \"attestation_created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"content_hash\": {\n \"name\": \"content_hash\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"publisher\": {\n \"name\": \"publisher\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"revoked_at\": {\n \"name\": \"revoked_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"derived_from_uid\": {\n \"name\": \"derived_from_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"retract\": {\n \"name\": \"retract\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"metadata_local_id_unique\": {\n \"name\": \"metadata_local_id_unique\",\n \"columns\": [\n \"local_id\"\n ],\n \"isUnique\": true\n },\n \"metadata_seed_local_id_property_name_idx\": {\n \"name\": \"metadata_seed_local_id_property_name_idx\",\n \"columns\": [\n \"seed_local_id\",\n \"property_name\"\n ],\n \"isUnique\": false\n },\n \"metadata_seed_uid_idx\": {\n \"name\": \"metadata_seed_uid_idx\",\n \"columns\": [\n \"seed_uid\"\n ],\n \"isUnique\": false\n }\n },\n \"foreignKeys\": {\n \"metadata_property_id_properties_id_fk\": {\n \"name\": \"metadata_property_id_properties_id_fk\",\n \"tableFrom\": \"metadata\",\n \"tableTo\": \"properties\",\n \"columnsFrom\": [\n \"property_id\"\n ],\n \"columnsTo\": [\n \"id\"\n ],\n \"onDelete\": \"no action\",\n \"onUpdate\": \"no action\"\n }\n },\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"models\": {\n \"name\": \"models\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"name\": {\n \"name\": \"name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"schema_file_id\": {\n \"name\": \"schema_file_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"is_edited\": {\n \"name\": \"is_edited\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"unique_schema_file_id\": {\n \"name\": \"unique_schema_file_id\",\n \"columns\": [\n \"schema_file_id\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"properties\": {\n \"name\": \"properties\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"name\": {\n \"name\": \"name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"data_type\": {\n \"name\": \"data_type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"model_id\": {\n \"name\": \"model_id\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"ref_model_id\": {\n \"name\": \"ref_model_id\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"ref_value_type\": {\n \"name\": \"ref_value_type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"schema_file_id\": {\n \"name\": \"schema_file_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"is_edited\": {\n \"name\": \"is_edited\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"required\": {\n \"name\": \"required\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"storage_type\": {\n \"name\": \"storage_type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"local_storage_dir\": {\n \"name\": \"local_storage_dir\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"filename_suffix\": {\n \"name\": \"filename_suffix\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"definition\": {\n \"name\": \"definition\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"unique_name_model_id\": {\n \"name\": \"unique_name_model_id\",\n \"columns\": [\n \"name\",\n \"model_id\"\n ],\n \"isUnique\": true\n },\n \"unique_property_schema_file_id\": {\n \"name\": \"unique_property_schema_file_id\",\n \"columns\": [\n \"schema_file_id\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {\n \"properties_model_id_models_id_fk\": {\n \"name\": \"properties_model_id_models_id_fk\",\n \"tableFrom\": \"properties\",\n \"tableTo\": \"models\",\n \"columnsFrom\": [\n \"model_id\"\n ],\n \"columnsTo\": [\n \"id\"\n ],\n \"onDelete\": \"no action\",\n \"onUpdate\": \"no action\"\n },\n \"properties_ref_model_id_models_id_fk\": {\n \"name\": \"properties_ref_model_id_models_id_fk\",\n \"tableFrom\": \"properties\",\n \"tableTo\": \"models\",\n \"columnsFrom\": [\n \"ref_model_id\"\n ],\n \"columnsTo\": [\n \"id\"\n ],\n \"onDelete\": \"no action\",\n \"onUpdate\": \"no action\"\n }\n },\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"model_schemas\": {\n \"name\": \"model_schemas\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"model_id\": {\n \"name\": \"model_id\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"schema_id\": {\n \"name\": \"schema_id\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"model_schemas_model_id_schema_id_unique\": {\n \"name\": \"model_schemas_model_id_schema_id_unique\",\n \"columns\": [\n \"model_id\",\n \"schema_id\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {\n \"model_schemas_model_id_models_id_fk\": {\n \"name\": \"model_schemas_model_id_models_id_fk\",\n \"tableFrom\": \"model_schemas\",\n \"tableTo\": \"models\",\n \"columnsFrom\": [\n \"model_id\"\n ],\n \"columnsTo\": [\n \"id\"\n ],\n \"onDelete\": \"no action\",\n \"onUpdate\": \"no action\"\n },\n \"model_schemas_schema_id_schemas_id_fk\": {\n \"name\": \"model_schemas_schema_id_schemas_id_fk\",\n \"tableFrom\": \"model_schemas\",\n \"tableTo\": \"schemas\",\n \"columnsFrom\": [\n \"schema_id\"\n ],\n \"columnsTo\": [\n \"id\"\n ],\n \"onDelete\": \"no action\",\n \"onUpdate\": \"no action\"\n }\n },\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"model_uids\": {\n \"name\": \"model_uids\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"uid\": {\n \"name\": \"uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"model_id\": {\n \"name\": \"model_id\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"model_uids_model_id_unique\": {\n \"name\": \"model_uids_model_id_unique\",\n \"columns\": [\n \"model_id\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {\n \"model_uids_model_id_models_id_fk\": {\n \"name\": \"model_uids_model_id_models_id_fk\",\n \"tableFrom\": \"model_uids\",\n \"tableTo\": \"models\",\n \"columnsFrom\": [\n \"model_id\"\n ],\n \"columnsTo\": [\n \"id\"\n ],\n \"onDelete\": \"no action\",\n \"onUpdate\": \"no action\"\n }\n },\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"pending_writes\": {\n \"name\": \"pending_writes\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"op_id\": {\n \"name\": \"op_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"group_id\": {\n \"name\": \"group_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"seed_local_id\": {\n \"name\": \"seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"property_name\": {\n \"name\": \"property_name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"kind\": {\n \"name\": \"kind\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"value\": {\n \"name\": \"value\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"value_ref\": {\n \"name\": \"value_ref\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"base_row_id\": {\n \"name\": \"base_row_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"base_uid\": {\n \"name\": \"base_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"tab_id\": {\n \"name\": \"tab_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"status\": {\n \"name\": \"status\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"error\": {\n \"name\": \"error\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"error_name\": {\n \"name\": \"error_name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"attempts\": {\n \"name\": \"attempts\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false,\n \"default\": 0\n },\n \"applied_at\": {\n \"name\": \"applied_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"result\": {\n \"name\": \"result\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"conflict\": {\n \"name\": \"conflict\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"conflict_resolved_at\": {\n \"name\": \"conflict_resolved_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"pending_writes_op_id_unique\": {\n \"name\": \"pending_writes_op_id_unique\",\n \"columns\": [\n \"op_id\"\n ],\n \"isUnique\": true\n },\n \"pending_writes_drain_order\": {\n \"name\": \"pending_writes_drain_order\",\n \"columns\": [\n \"status\",\n \"seed_local_id\",\n \"property_name\",\n \"created_at\"\n ],\n \"isUnique\": false\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"publish_processes\": {\n \"name\": \"publish_processes\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"seed_local_id\": {\n \"name\": \"seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"model_name\": {\n \"name\": \"model_name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"schema_id\": {\n \"name\": \"schema_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"status\": {\n \"name\": \"status\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"started_at\": {\n \"name\": \"started_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"completed_at\": {\n \"name\": \"completed_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"error_message\": {\n \"name\": \"error_message\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"error_step\": {\n \"name\": \"error_step\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"error_details\": {\n \"name\": \"error_details\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"error_code\": {\n \"name\": \"error_code\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"persisted_snapshot\": {\n \"name\": \"persisted_snapshot\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"seed_id\": {\n \"name\": \"seed_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"existing_seed_uid\": {\n \"name\": \"existing_seed_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {},\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"schemas\": {\n \"name\": \"schemas\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"name\": {\n \"name\": \"name\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"version\": {\n \"name\": \"version\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"schema_file_id\": {\n \"name\": \"schema_file_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"schema_data\": {\n \"name\": \"schema_data\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"is_draft\": {\n \"name\": \"is_draft\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"is_edited\": {\n \"name\": \"is_edited\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"content_hash\": {\n \"name\": \"content_hash\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"unique_schema_schema_file_id\": {\n \"name\": \"unique_schema_schema_file_id\",\n \"columns\": [\n \"schema_file_id\"\n ],\n \"isUnique\": true\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"seeds\": {\n \"name\": \"seeds\",\n \"columns\": {\n \"local_id\": {\n \"name\": \"local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"uid\": {\n \"name\": \"uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"schema_uid\": {\n \"name\": \"schema_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"type\": {\n \"name\": \"type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"model_file_id\": {\n \"name\": \"model_file_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"publisher\": {\n \"name\": \"publisher\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"attestation_raw\": {\n \"name\": \"attestation_raw\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"attestation_created_at\": {\n \"name\": \"attestation_created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"_marked_for_deletion\": {\n \"name\": \"_marked_for_deletion\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"revoked_at\": {\n \"name\": \"revoked_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"seeds_local_id_unique\": {\n \"name\": \"seeds_local_id_unique\",\n \"columns\": [\n \"local_id\"\n ],\n \"isUnique\": true\n },\n \"seeds_uid_idx\": {\n \"name\": \"seeds_uid_idx\",\n \"columns\": [\n \"uid\"\n ],\n \"isUnique\": false\n },\n \"seeds_type_idx\": {\n \"name\": \"seeds_type_idx\",\n \"columns\": [\n \"type\"\n ],\n \"isUnique\": false\n },\n \"seeds_attested_uid_unique\": {\n \"name\": \"seeds_attested_uid_unique\",\n \"columns\": [\n \"uid\"\n ],\n \"isUnique\": true,\n \"where\": \"\\\"seeds\\\".\\\"uid\\\" IS NOT NULL AND trim(\\\"seeds\\\".\\\"uid\\\") NOT IN ('', 'NULL') AND lower(trim(\\\"seeds\\\".\\\"uid\\\")) != '0x0000000000000000000000000000000000000000000000000000000000000000'\"\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"upload_processes\": {\n \"name\": \"upload_processes\",\n \"columns\": {\n \"id\": {\n \"name\": \"id\",\n \"type\": \"integer\",\n \"primaryKey\": true,\n \"notNull\": true,\n \"autoincrement\": true\n },\n \"reimbursement_confirmed\": {\n \"name\": \"reimbursement_confirmed\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"reimbursement_transaction_id\": {\n \"name\": \"reimbursement_transaction_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"transaction_keys\": {\n \"name\": \"transaction_keys\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"persisted_snapshot\": {\n \"name\": \"persisted_snapshot\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": true,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {},\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n },\n \"versions\": {\n \"name\": \"versions\",\n \"columns\": {\n \"local_id\": {\n \"name\": \"local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"uid\": {\n \"name\": \"uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"seed_local_id\": {\n \"name\": \"seed_local_id\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"seed_uid\": {\n \"name\": \"seed_uid\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"seed_type\": {\n \"name\": \"seed_type\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"note\": {\n \"name\": \"note\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"created_at\": {\n \"name\": \"created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"updated_at\": {\n \"name\": \"updated_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"attestation_created_at\": {\n \"name\": \"attestation_created_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"attestation_raw\": {\n \"name\": \"attestation_raw\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"publisher\": {\n \"name\": \"publisher\",\n \"type\": \"text\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n },\n \"revoked_at\": {\n \"name\": \"revoked_at\",\n \"type\": \"integer\",\n \"primaryKey\": false,\n \"notNull\": false,\n \"autoincrement\": false\n }\n },\n \"indexes\": {\n \"versions_local_id_unique\": {\n \"name\": \"versions_local_id_unique\",\n \"columns\": [\n \"local_id\"\n ],\n \"isUnique\": true\n },\n \"versions_seed_local_id_idx\": {\n \"name\": \"versions_seed_local_id_idx\",\n \"columns\": [\n \"seed_local_id\"\n ],\n \"isUnique\": false\n },\n \"versions_attested_uid_unique\": {\n \"name\": \"versions_attested_uid_unique\",\n \"columns\": [\n \"uid\"\n ],\n \"isUnique\": true,\n \"where\": \"\\\"versions\\\".\\\"uid\\\" IS NOT NULL AND trim(\\\"versions\\\".\\\"uid\\\") NOT IN ('', 'NULL') AND lower(trim(\\\"versions\\\".\\\"uid\\\")) != '0x0000000000000000000000000000000000000000000000000000000000000000'\"\n }\n },\n \"foreignKeys\": {},\n \"compositePrimaryKeys\": {},\n \"uniqueConstraints\": {},\n \"checkConstraints\": {}\n }\n },\n \"views\": {},\n \"enums\": {},\n \"_meta\": {\n \"schemas\": {},\n \"tables\": {},\n \"columns\": {}\n },\n \"internal\": {\n \"indexes\": {}\n }\n}";
|
|
33
34
|
//# sourceMappingURL=drizzleFiles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drizzleFiles.d.ts","sourceRoot":"","sources":["../../../../src/browser/db/drizzleFiles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gCAAgC,81HAwHoC,CAAA;AAEjF,eAAO,MAAM,oCAAoC,yHACC,CAAA;AAElD,eAAO,MAAM,kCAAkC,+SAE2C,CAAA;AAE1F,eAAO,MAAM,wCAAwC,qMAEF,CAAA;AAEnD,eAAO,MAAM,wCAAwC,8CAAkD,CAAA;AAEvG,eAAO,MAAM,uCAAuC,+xBA2BnD,CAAA;AAED,eAAO,MAAM,wDAAwD,2HAGpE,CAAA;AAED,eAAO,MAAM,4CAA4C,iEACxD,CAAA;AAED,eAAO,MAAM,yCAAyC,oDACrD,CAAA;AAED,eAAO,MAAM,6BAA6B,q2BAasC,CAAA;AAEhF,eAAO,MAAM,8CAA8C,kjBAgB1D,CAAA;AAED,eAAO,MAAM,4CAA4C,saASxD,CAAA;AAED,eAAO,MAAM,gDAAgD,4dAU5D,CAAA;AAED,eAAO,MAAM,oCAAoC,wWAYhD,CAAA;AAED,eAAO,MAAM,qDAAqD,6DACjE,CAAA;AAED,eAAO,MAAM,4CAA4C,+cAWxD,CAAA;AAED,eAAO,MAAM,4CAA4C,uDACxD,CAAA;AAED,eAAO,MAAM,4CAA4C,qDAAyD,CAAA;AAElH,eAAO,MAAM,oDAAoD,ktEAqDhE,CAAA;AAED,eAAO,MAAM,kDAAkD,44CAmC9D,CAAA;AAED,eAAO,MAAM,oCAAoC,sxBAuBkF,CAAA;AAEnI,eAAO,MAAM,8CAA8C,wDAA4D,CAAA;AAEvH,eAAO,MAA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