{ "version": "6", "dialect": "sqlite", "id": "feb276b9-6e2b-4204-885b-167701a4a707", "prevId": "00000000-0000-0000-0000-000000000000", "tables": { "records": { "name": "records", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "record_id": { "name": "record_id", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "type_id": { "name": "type_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false } }, "indexes": { "records_record_id_unique": { "name": "records_record_id_unique", "columns": [ "record_id" ], "isUnique": true }, "chores_index": { "name": "chores_index", "columns": [ "record_id" ], "isUnique": false, "where": "type_id = 1" }, "project_index": { "name": "project_index", "columns": [ "record_id" ], "isUnique": false, "where": "type_id = 2" }, "ticket_index": { "name": "ticket_index", "columns": [ "record_id" ], "isUnique": false, "where": "type_id = 3" } }, "foreignKeys": { "records_type_id_record_types_id_fk": { "name": "records_type_id_record_types_id_fk", "tableFrom": "records", "tableTo": "record_types", "columnsFrom": [ "type_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} }, "record_types": { "name": "record_types", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "type": { "name": "type", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "checkConstraints": {} } }, "views": {}, "enums": {}, "_meta": { "schemas": {}, "tables": {}, "columns": {} }, "internal": { "indexes": {} } }