{
  "formatVersion": 1,
  "database": {
    "version": 6,
    "identityHash": "02103fea4fc7d54b468b553236de7929",
    "entities": [
      {
        "tableName": "notes",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`title` TEXT NOT NULL, `content` TEXT NOT NULL, `created_date` INTEGER NOT NULL, `updated_date` INTEGER NOT NULL, `pinned` INTEGER NOT NULL, `folder_id` TEXT, `id` TEXT NOT NULL, `sync_seq` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`id`))",
        "fields": [
          {
            "fieldPath": "title",
            "columnName": "title",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "content",
            "columnName": "content",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "createdDate",
            "columnName": "created_date",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "updatedDate",
            "columnName": "updated_date",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "pinned",
            "columnName": "pinned",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "folderId",
            "columnName": "folder_id",
            "affinity": "TEXT"
          },
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "syncSeq",
            "columnName": "sync_seq",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "1"
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "id"
          ]
        },
        "indices": [
          {
            "name": "index_notes_sync_seq",
            "unique": false,
            "columnNames": [
              "sync_seq"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_notes_sync_seq` ON `${TABLE_NAME}` (`sync_seq`)"
          }
        ]
      },
      {
        "tableName": "tasks",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`title` TEXT NOT NULL, `description` TEXT NOT NULL, `is_completed` INTEGER NOT NULL, `priority` INTEGER NOT NULL, `created_date` INTEGER NOT NULL, `updated_date` INTEGER NOT NULL, `sub_tasks` TEXT NOT NULL, `dueDate` INTEGER NOT NULL, `recurring` INTEGER NOT NULL, `frequency` INTEGER NOT NULL, `frequency_amount` INTEGER NOT NULL, `alarmId` INTEGER, `id` TEXT NOT NULL, `sync_seq` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`id`))",
        "fields": [
          {
            "fieldPath": "title",
            "columnName": "title",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "description",
            "columnName": "description",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "isCompleted",
            "columnName": "is_completed",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "priority",
            "columnName": "priority",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "createdDate",
            "columnName": "created_date",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "updatedDate",
            "columnName": "updated_date",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "subTasks",
            "columnName": "sub_tasks",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "dueDate",
            "columnName": "dueDate",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "recurring",
            "columnName": "recurring",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "frequency",
            "columnName": "frequency",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "frequencyAmount",
            "columnName": "frequency_amount",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "alarmId",
            "columnName": "alarmId",
            "affinity": "INTEGER"
          },
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "syncSeq",
            "columnName": "sync_seq",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "1"
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "id"
          ]
        },
        "indices": [
          {
            "name": "index_tasks_sync_seq",
            "unique": false,
            "columnNames": [
              "sync_seq"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_tasks_sync_seq` ON `${TABLE_NAME}` (`sync_seq`)"
          }
        ]
      },
      {
        "tableName": "diary",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`title` TEXT NOT NULL, `content` TEXT NOT NULL, `created_date` INTEGER NOT NULL, `updated_date` INTEGER NOT NULL, `mood` INTEGER NOT NULL, `id` TEXT NOT NULL, `sync_seq` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`id`))",
        "fields": [
          {
            "fieldPath": "title",
            "columnName": "title",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "content",
            "columnName": "content",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "createdDate",
            "columnName": "created_date",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "updatedDate",
            "columnName": "updated_date",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "mood",
            "columnName": "mood",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "syncSeq",
            "columnName": "sync_seq",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "1"
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "id"
          ]
        },
        "indices": [
          {
            "name": "index_diary_sync_seq",
            "unique": false,
            "columnNames": [
              "sync_seq"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_diary_sync_seq` ON `${TABLE_NAME}` (`sync_seq`)"
          }
        ]
      },
      {
        "tableName": "bookmarks",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `description` TEXT NOT NULL, `created_date` INTEGER NOT NULL, `updated_date` INTEGER NOT NULL, `id` TEXT NOT NULL, `sync_seq` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`id`))",
        "fields": [
          {
            "fieldPath": "url",
            "columnName": "url",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "title",
            "columnName": "title",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "description",
            "columnName": "description",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "createdDate",
            "columnName": "created_date",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "updatedDate",
            "columnName": "updated_date",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "syncSeq",
            "columnName": "sync_seq",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "1"
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "id"
          ]
        },
        "indices": [
          {
            "name": "index_bookmarks_sync_seq",
            "unique": false,
            "columnNames": [
              "sync_seq"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_bookmarks_sync_seq` ON `${TABLE_NAME}` (`sync_seq`)"
          }
        ]
      },
      {
        "tableName": "alarms",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `time` INTEGER NOT NULL)",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "time",
            "columnName": "time",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "autoGenerate": true,
          "columnNames": [
            "id"
          ]
        }
      },
      {
        "tableName": "note_folders",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`name` TEXT NOT NULL, `id` TEXT NOT NULL, `sync_seq` INTEGER NOT NULL DEFAULT 1, `updated_date` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`id`))",
        "fields": [
          {
            "fieldPath": "name",
            "columnName": "name",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "syncSeq",
            "columnName": "sync_seq",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "1"
          },
          {
            "fieldPath": "updatedDate",
            "columnName": "updated_date",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "0"
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "id"
          ]
        },
        "indices": [
          {
            "name": "index_note_folders_sync_seq",
            "unique": false,
            "columnNames": [
              "sync_seq"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_note_folders_sync_seq` ON `${TABLE_NAME}` (`sync_seq`)"
          }
        ]
      },
      {
        "tableName": "assistant_threads",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `title` TEXT NOT NULL, `created_at` INTEGER NOT NULL, `updated_at` INTEGER NOT NULL, `sync_seq` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`id`))",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "title",
            "columnName": "title",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "createdAt",
            "columnName": "created_at",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "updatedAt",
            "columnName": "updated_at",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "syncSeq",
            "columnName": "sync_seq",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "1"
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "id"
          ]
        },
        "indices": [
          {
            "name": "index_assistant_threads_sync_seq",
            "unique": false,
            "columnNames": [
              "sync_seq"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_assistant_threads_sync_seq` ON `${TABLE_NAME}` (`sync_seq`)"
          }
        ]
      },
      {
        "tableName": "assistant_messages",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `thread_id` TEXT NOT NULL, `type` INTEGER NOT NULL, `content` TEXT NOT NULL, `created_at` INTEGER NOT NULL, `metadata` TEXT, `sync_seq` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`id`))",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "threadId",
            "columnName": "thread_id",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "type",
            "columnName": "type",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "content",
            "columnName": "content",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "createdAt",
            "columnName": "created_at",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "metadata",
            "columnName": "metadata",
            "affinity": "TEXT"
          },
          {
            "fieldPath": "syncSeq",
            "columnName": "sync_seq",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "1"
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "id"
          ]
        },
        "indices": [
          {
            "name": "index_assistant_messages_thread_id",
            "unique": false,
            "columnNames": [
              "thread_id"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_assistant_messages_thread_id` ON `${TABLE_NAME}` (`thread_id`)"
          },
          {
            "name": "index_assistant_messages_sync_seq",
            "unique": false,
            "columnNames": [
              "sync_seq"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_assistant_messages_sync_seq` ON `${TABLE_NAME}` (`sync_seq`)"
          }
        ]
      },
      {
        "tableName": "paired_devices",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `ip_address` TEXT NOT NULL, `port` INTEGER NOT NULL, `last_synced_at` INTEGER NOT NULL, `encryption_key` TEXT NOT NULL, `device_version` INTEGER NOT NULL DEFAULT 1, `is_connected` INTEGER NOT NULL DEFAULT 0, `candidate_ip_addresses` TEXT NOT NULL DEFAULT '[]', `custom_ip_address` TEXT, PRIMARY KEY(`id`))",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "name",
            "columnName": "name",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "ipAddress",
            "columnName": "ip_address",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "port",
            "columnName": "port",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "lastSyncedSeq",
            "columnName": "last_synced_at",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "encryptionKey",
            "columnName": "encryption_key",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "deviceVersion",
            "columnName": "device_version",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "1"
          },
          {
            "fieldPath": "isConnected",
            "columnName": "is_connected",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "0"
          },
          {
            "fieldPath": "candidateIpAddresses",
            "columnName": "candidate_ip_addresses",
            "affinity": "TEXT",
            "notNull": true,
            "defaultValue": "'[]'"
          },
          {
            "fieldPath": "customIpAddress",
            "columnName": "custom_ip_address",
            "affinity": "TEXT"
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "id"
          ]
        }
      },
      {
        "tableName": "deleted_entities",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `entity_id` TEXT NOT NULL, `entity_type` TEXT NOT NULL, `deleted_at` INTEGER NOT NULL, `sync_seq` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`id`))",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "entityId",
            "columnName": "entity_id",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "entityType",
            "columnName": "entity_type",
            "affinity": "TEXT",
            "notNull": true
          },
          {
            "fieldPath": "deletedAt",
            "columnName": "deleted_at",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "syncSeq",
            "columnName": "sync_seq",
            "affinity": "INTEGER",
            "notNull": true,
            "defaultValue": "1"
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "id"
          ]
        },
        "indices": [
          {
            "name": "index_deleted_entities_sync_seq",
            "unique": false,
            "columnNames": [
              "sync_seq"
            ],
            "orders": [],
            "createSql": "CREATE INDEX IF NOT EXISTS `index_deleted_entities_sync_seq` ON `${TABLE_NAME}` (`sync_seq`)"
          },
          {
            "name": "index_deleted_entities_entity_type_entity_id",
            "unique": true,
            "columnNames": [
              "entity_type",
              "entity_id"
            ],
            "orders": [],
            "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_deleted_entities_entity_type_entity_id` ON `${TABLE_NAME}` (`entity_type`, `entity_id`)"
          }
        ]
      },
      {
        "tableName": "sync_state",
        "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `last_seq` INTEGER NOT NULL, PRIMARY KEY(`id`))",
        "fields": [
          {
            "fieldPath": "id",
            "columnName": "id",
            "affinity": "INTEGER",
            "notNull": true
          },
          {
            "fieldPath": "lastSeq",
            "columnName": "last_seq",
            "affinity": "INTEGER",
            "notNull": true
          }
        ],
        "primaryKey": {
          "autoGenerate": false,
          "columnNames": [
            "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, '02103fea4fc7d54b468b553236de7929')"
    ]
  }
}