{
  "formatVersion": 1,
  "database": {
    "version": 12,
    "identityHash": "c8d053977ac98d7336cc140b9e4f3558",
    "entities": [
      {
        "tableName": "LocalReminderData",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `time` INTEGER NOT NULL, `message` TEXT NOT NULL)",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "time",
            "columnName": "time",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "message",
            "columnName": "message",
            "affinity": "TEXT",
            "notNull": true
          }
        ],
        "primaryKey": {
          "autoGenerate": true,
          "columnNames": [
            "id"
          ]
        }
      },
      {
        "tableName": "CachedRecordingMetadata",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `sampleRate` INTEGER NOT NULL, `mimeType` TEXT NOT NULL, PRIMARY KEY(`id`))",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "sampleRate",
            "columnName": "sampleRate",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "mimeType",
            "columnName": "mimeType",
            "affinity": "TEXT",
            "notNull": true
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "id"
          ]
        }
      },
      {
        "tableName": "RingDebugTransfer",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `satelliteName` TEXT, `satelliteId` TEXT NOT NULL, `satelliteFirmwareVersion` TEXT NOT NULL, `satelliteLastAdvertisementTimestamp` INTEGER NOT NULL, `collectionIndex` INTEGER NOT NULL, `collectionStartCount` INTEGER NOT NULL DEFAULT -1, `buttonSequence` TEXT, `sampleCount` INTEGER NOT NULL, `sampleRate` INTEGER NOT NULL, `buttonReleaseTimestamp` INTEGER, `transferCompleteTimestamp` INTEGER NOT NULL, `storedPath` TEXT NOT NULL)",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "satelliteName",
            "columnName": "satelliteName",
            "affinity": "TEXT"
          },
          {
            "fieldPath": "satelliteId",
            "columnName": "satelliteId",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "satelliteFirmwareVersion",
            "columnName": "satelliteFirmwareVersion",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "satelliteLastAdvertisementTimestamp",
            "columnName": "satelliteLastAdvertisementTimestamp",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "collectionIndex",
            "columnName": "collectionIndex",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "collectionStartCount",
            "columnName": "collectionStartCount",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "-1"
          },
          {
            "fieldPath": "buttonSequence",
            "columnName": "buttonSequence",
            "affinity": "TEXT"
          },
          {
            "fieldPath": "sampleCount",
            "columnName": "sampleCount",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "sampleRate",
            "columnName": "sampleRate",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "buttonReleaseTimestamp",
            "columnName": "buttonReleaseTimestamp",
            "affinity": "INTEGER"
          },
          {
            "fieldPath": "transferCompleteTimestamp",
            "columnName": "transferCompleteTimestamp",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "storedPath",
            "columnName": "storedPath",
            "affinity": "TEXT",
            "notNull": true
          }
        ],
        "primaryKey": {
          "autoGenerate": true,
          "columnNames": [
            "id"
          ]
        }
      },
      {
        "tableName": "LocalRecording",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `localTimestamp` INTEGER NOT NULL, `firestoreId` TEXT, `notified` INTEGER NOT NULL, `discarded` INTEGER NOT NULL DEFAULT 0, `updated` INTEGER NOT NULL DEFAULT 0, `assistantTitle` TEXT)",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "localTimestamp",
            "columnName": "localTimestamp",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "firestoreId",
            "columnName": "firestoreId",
            "affinity": "TEXT"
          },
          {
            "fieldPath": "notified",
            "columnName": "notified",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "discarded",
            "columnName": "discarded",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "0"
          },
          {
            "fieldPath": "updated",
            "columnName": "updated",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "0"
          },
          {
            "fieldPath": "assistantTitle",
            "columnName": "assistantTitle",
            "affinity": "TEXT"
          }
        ],
        "primaryKey": {
          "autoGenerate": true,
          "columnNames": [
            "id"
          ]
        }
      },
      {
        "tableName": "ConversationMessageEntity",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `recordingId` INTEGER NOT NULL, `timestamp` INTEGER NOT NULL, `role` TEXT NOT NULL, `content` TEXT, `tool_calls` TEXT, `tool_call_id` TEXT, `semantic_result` TEXT, FOREIGN KEY(`recordingId`) REFERENCES `LocalRecording`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "recordingId",
            "columnName": "recordingId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "timestamp",
            "columnName": "timestamp",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "document.role",
            "columnName": "role",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "document.content",
            "columnName": "content",
            "affinity": "TEXT"
          },
          {
            "fieldPath": "document.tool_calls",
            "columnName": "tool_calls",
            "affinity": "TEXT"
          },
          {
            "fieldPath": "document.tool_call_id",
            "columnName": "tool_call_id",
            "affinity": "TEXT"
          },
          {
            "fieldPath": "document.semantic_result",
            "columnName": "semantic_result",
            "affinity": "TEXT"
          }
        ],
        "primaryKey": {
          "autoGenerate": true,
          "columnNames": [
            "id"
          ]
        },
        "indices": [
          {
            "name": "index_ConversationMessageEntity_recordingId",
            "unique": false,
            "columnNames": [
              "recordingId"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_ConversationMessageEntity_recordingId` ON `${TABLE_NAME}` (`recordingId`)"
          }
        ],
        "foreignKeys": [
          {
            "table": "LocalRecording",
            "onDelete": "CASCADE",
            "onUpdate": "NO ACTION",
            "columns": [
              "recordingId"
            ],
            "referencedColumns": [
              "id"
            ]
          }
        ]
      },
      {
        "tableName": "RecordingEntryEntity",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `recordingId` INTEGER NOT NULL, `timestamp` INTEGER NOT NULL, `fileName` TEXT, `status` TEXT NOT NULL, `transcription` TEXT, `error` TEXT, `ringTransferInfo` TEXT, `userMessageId` INTEGER, FOREIGN KEY(`recordingId`) REFERENCES `LocalRecording`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "recordingId",
            "columnName": "recordingId",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "timestamp",
            "columnName": "timestamp",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "fileName",
            "columnName": "fileName",
            "affinity": "TEXT"
          },
          {
            "fieldPath": "status",
            "columnName": "status",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "transcription",
            "columnName": "transcription",
            "affinity": "TEXT"
          },
          {
            "fieldPath": "error",
            "columnName": "error",
            "affinity": "TEXT"
          },
          {
            "fieldPath": "ringTransferInfo",
            "columnName": "ringTransferInfo",
            "affinity": "TEXT"
          },
          {
            "fieldPath": "userMessageId",
            "columnName": "userMessageId",
            "affinity": "INTEGER"
          }
        ],
        "primaryKey": {
          "autoGenerate": true,
          "columnNames": [
            "id"
          ]
        },
        "indices": [
          {
            "name": "index_RecordingEntryEntity_userMessageId",
            "unique": false,
            "columnNames": [
              "userMessageId"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_RecordingEntryEntity_userMessageId` ON `${TABLE_NAME}` (`userMessageId`)"
          },
          {
            "name": "index_RecordingEntryEntity_recordingId",
            "unique": false,
            "columnNames": [
              "recordingId"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_RecordingEntryEntity_recordingId` ON `${TABLE_NAME}` (`recordingId`)"
          }
        ],
        "foreignKeys": [
          {
            "table": "LocalRecording",
            "onDelete": "CASCADE",
            "onUpdate": "NO ACTION",
            "columns": [
              "recordingId"
            ],
            "referencedColumns": [
              "id"
            ]
          }
        ]
      }
    ],
    "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, 'c8d053977ac98d7336cc140b9e4f3558')"
    ]
  }
}