{ "version": "6", "dialect": "sqlite", "id": "77441a9c-7dba-4cc4-b9db-5720373932d8", "prevId": "00000000-0000-0000-0000-000000000000", "tables": { "conversations": { "name": "conversations", "columns": { "id": { "name": "id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "did": { "name": "did", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "post_uri": { "name": "post_uri", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "revision": { "name": "revision", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "created_at": { "name": "created_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "CURRENT_TIMESTAMP" }, "last_active": { "name": "last_active", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "CURRENT_TIMESTAMP" } }, "indexes": { "conversations_id_unique": { "name": "conversations_id_unique", "columns": [ "id" ], "isUnique": true }, "conversations_did_unique": { "name": "conversations_did_unique", "columns": [ "did" ], "isUnique": true } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "messages": { "name": "messages", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "conversation_id": { "name": "conversation_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "revision": { "name": "revision", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "did": { "name": "did", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "post_uri": { "name": "post_uri", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "text": { "name": "text", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "created_at": { "name": "created_at", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "CURRENT_TIMESTAMP" } }, "indexes": {}, "foreignKeys": { "messages_conversation_id_conversations_id_fk": { "name": "messages_conversation_id_conversations_id_fk", "tableFrom": "messages", "tableTo": "conversations", "columnsFrom": [ "conversation_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "messages_revision_conversations_revision_fk": { "name": "messages_revision_conversations_revision_fk", "tableFrom": "messages", "tableTo": "conversations", "columnsFrom": [ "revision" ], "columnsTo": [ "revision" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} } }, "views": {}, "enums": {}, "_meta": { "schemas": {}, "tables": {}, "columns": {} }, "internal": { "indexes": {} } }