Files
2026-08-14 03:04:10 +03:00

319 lines
9.5 KiB
JSON

{
"formatVersion": 1,
"database": {
"version": 2,
"identityHash": "d958da3c62d9742b00ed2ff18a7ab1d7",
"entities": [
{
"tableName": "profiles",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `sourceType` TEXT NOT NULL, `secretRef` TEXT NOT NULL, `protocolHint` TEXT NOT NULL, `lastUpdatedAt` INTEGER, `lastEtag` TEXT, `isActive` INTEGER NOT NULL)",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "sourceType",
"columnName": "sourceType",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "secretRef",
"columnName": "secretRef",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "protocolHint",
"columnName": "protocolHint",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "lastUpdatedAt",
"columnName": "lastUpdatedAt",
"affinity": "INTEGER"
},
{
"fieldPath": "lastEtag",
"columnName": "lastEtag",
"affinity": "TEXT"
},
{
"fieldPath": "isActive",
"columnName": "isActive",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"id"
]
}
},
{
"tableName": "routing_presets",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `source` TEXT NOT NULL, `catalogId` INTEGER, `overrideMode` TEXT NOT NULL, `enabled` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, `isActive` INTEGER NOT NULL)",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "source",
"columnName": "source",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "catalogId",
"columnName": "catalogId",
"affinity": "INTEGER"
},
{
"fieldPath": "overrideMode",
"columnName": "overrideMode",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "enabled",
"columnName": "enabled",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "updatedAt",
"columnName": "updatedAt",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "isActive",
"columnName": "isActive",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"id"
]
},
"indices": [
{
"name": "index_routing_presets_catalogId",
"unique": false,
"columnNames": [
"catalogId"
],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_routing_presets_catalogId` ON `${TABLE_NAME}` (`catalogId`)"
},
{
"name": "index_routing_presets_isActive",
"unique": false,
"columnNames": [
"isActive"
],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_routing_presets_isActive` ON `${TABLE_NAME}` (`isActive`)"
}
]
},
{
"tableName": "routing_rules",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `presetId` INTEGER NOT NULL, `name` TEXT NOT NULL, `enabled` INTEGER NOT NULL, `order` INTEGER NOT NULL, `action` TEXT NOT NULL, `matchDomains` TEXT NOT NULL, `matchIpCidrs` TEXT NOT NULL, `matchPorts` TEXT NOT NULL, `matchProtocols` TEXT NOT NULL, `matchNetworks` TEXT NOT NULL, FOREIGN KEY(`presetId`) REFERENCES `routing_presets`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "presetId",
"columnName": "presetId",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "enabled",
"columnName": "enabled",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "order",
"columnName": "order",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "action",
"columnName": "action",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "matchDomains",
"columnName": "matchDomains",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "matchIpCidrs",
"columnName": "matchIpCidrs",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "matchPorts",
"columnName": "matchPorts",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "matchProtocols",
"columnName": "matchProtocols",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "matchNetworks",
"columnName": "matchNetworks",
"affinity": "TEXT",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"id"
]
},
"indices": [
{
"name": "index_routing_rules_presetId",
"unique": false,
"columnNames": [
"presetId"
],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_routing_rules_presetId` ON `${TABLE_NAME}` (`presetId`)"
}
],
"foreignKeys": [
{
"table": "routing_presets",
"onDelete": "CASCADE",
"onUpdate": "NO ACTION",
"columns": [
"presetId"
],
"referencedColumns": [
"id"
]
}
]
},
{
"tableName": "routing_catalogs",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `url` TEXT NOT NULL, `enabled` INTEGER NOT NULL, `etag` TEXT, `lastSyncAt` INTEGER, `warningAcceptedAt` INTEGER, `cachedManifestJson` TEXT)",
"fields": [
{
"fieldPath": "id",
"columnName": "id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "name",
"columnName": "name",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "url",
"columnName": "url",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "enabled",
"columnName": "enabled",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "etag",
"columnName": "etag",
"affinity": "TEXT"
},
{
"fieldPath": "lastSyncAt",
"columnName": "lastSyncAt",
"affinity": "INTEGER"
},
{
"fieldPath": "warningAcceptedAt",
"columnName": "warningAcceptedAt",
"affinity": "INTEGER"
},
{
"fieldPath": "cachedManifestJson",
"columnName": "cachedManifestJson",
"affinity": "TEXT"
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"id"
]
},
"indices": [
{
"name": "index_routing_catalogs_url",
"unique": true,
"columnNames": [
"url"
],
"orders": [],
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_routing_catalogs_url` ON `${TABLE_NAME}` (`url`)"
}
]
}
],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'd958da3c62d9742b00ed2ff18a7ab1d7')"
]
}
}