{ "formatVersion": 1, "database": { "version": 1, "identityHash": "95945b906b067a2544dc227ce6ed4c0e", "entities": [ { "tableName": "contact", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`pubkey` TEXT NOT NULL, `contactPubkey` TEXT NOT NULL, `relayUrl` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, PRIMARY KEY(`pubkey`, `contactPubkey`))", "fields": [ { "fieldPath": "pubkey", "columnName": "pubkey", "affinity": "TEXT", "notNull": true }, { "fieldPath": "contactPubkey", "columnName": "contactPubkey", "affinity": "TEXT", "notNull": true }, { "fieldPath": "relayUrl", "columnName": "relayUrl", "affinity": "TEXT", "notNull": true }, { "fieldPath": "createdAt", "columnName": "createdAt", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "pubkey", "contactPubkey" ] }, "indices": [], "foreignKeys": [] }, { "tableName": "eventRelay", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`eventId` TEXT NOT NULL, `relayUrl` TEXT NOT NULL, PRIMARY KEY(`eventId`, `relayUrl`))", "fields": [ { "fieldPath": "eventId", "columnName": "eventId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "relayUrl", "columnName": "relayUrl", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "eventId", "relayUrl" ] }, "indices": [], "foreignKeys": [] }, { "tableName": "post", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `pubkey` TEXT NOT NULL, `replyToId` TEXT, `replyToRootId` TEXT, `repostedId` TEXT, `content` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, PRIMARY KEY(`id`))", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "pubkey", "columnName": "pubkey", "affinity": "TEXT", "notNull": true }, { "fieldPath": "replyToId", "columnName": "replyToId", "affinity": "TEXT", "notNull": false }, { "fieldPath": "replyToRootId", "columnName": "replyToRootId", "affinity": "TEXT", "notNull": false }, { "fieldPath": "repostedId", "columnName": "repostedId", "affinity": "TEXT", "notNull": false }, { "fieldPath": "content", "columnName": "content", "affinity": "TEXT", "notNull": true }, { "fieldPath": "createdAt", "columnName": "createdAt", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "id" ] }, "indices": [], "foreignKeys": [] }, { "tableName": "profile", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`pubkey` TEXT NOT NULL, `name` TEXT NOT NULL, `about` TEXT NOT NULL, `picture` TEXT NOT NULL, `nip05` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, PRIMARY KEY(`pubkey`))", "fields": [ { "fieldPath": "pubkey", "columnName": "pubkey", "affinity": "TEXT", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "about", "columnName": "about", "affinity": "TEXT", "notNull": true }, { "fieldPath": "picture", "columnName": "picture", "affinity": "TEXT", "notNull": true }, { "fieldPath": "nip05", "columnName": "nip05", "affinity": "TEXT", "notNull": true }, { "fieldPath": "createdAt", "columnName": "createdAt", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "pubkey" ] }, "indices": [], "foreignKeys": [] }, { "tableName": "reaction", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`eventId` TEXT NOT NULL, `pubkey` TEXT NOT NULL, PRIMARY KEY(`eventId`, `pubkey`))", "fields": [ { "fieldPath": "eventId", "columnName": "eventId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "pubkey", "columnName": "pubkey", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "eventId", "pubkey" ] }, "indices": [], "foreignKeys": [] }, { "tableName": "relay", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`relayUrl` TEXT NOT NULL, PRIMARY KEY(`relayUrl`))", "fields": [ { "fieldPath": "relayUrl", "columnName": "relayUrl", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "relayUrl" ] }, "indices": [], "foreignKeys": [] } ], "views": [], "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, '95945b906b067a2544dc227ce6ed4c0e')" ] } }