{ "id": "b5fc8bcf-82d4-4d2e-bcd1-89d5a238f5e2", "prevId": "00000000-0000-0000-0000-000000000000", "version": "7", "dialect": "postgresql", "tables": { "public.users": { "name": "users", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "users_name_unique": { "name": "users_name_unique", "nullsNotDistinct": false, "columns": [ "name" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.nodes": { "name": "nodes", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "userId": { "name": "userId", "type": "varchar", "primaryKey": false, "notNull": true }, "systemId": { "name": "systemId", "type": "varchar", "primaryKey": false, "notNull": true }, "nodeId": { "name": "nodeId", "type": "varchar", "primaryKey": false, "notNull": true }, "content": { "name": "content", "type": "bytea", "primaryKey": false, "notNull": true }, "definition": { "name": "definition", "type": "json", "primaryKey": false, "notNull": true }, "hash": { "name": "hash", "type": "varchar(8)", "primaryKey": false, "notNull": true }, "previous": { "name": "previous", "type": "varchar(8)", "primaryKey": false, "notNull": false } }, "indexes": { "user_id_idx": { "name": "user_id_idx", "columns": [ { "expression": "userId", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "system_id_idx": { "name": "system_id_idx", "columns": [ { "expression": "systemId", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "node_id_idx": { "name": "node_id_idx", "columns": [ { "expression": "nodeId", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} }, "hash_idx": { "name": "hash_idx", "columns": [ { "expression": "hash", "isExpression": false, "asc": true, "nulls": "last" } ], "isUnique": false, "concurrently": false, "method": "btree", "with": {} } }, "foreignKeys": { "nodes_userId_users_name_fk": { "name": "nodes_userId_users_name_fk", "tableFrom": "nodes", "tableTo": "users", "columnsFrom": [ "userId" ], "columnsTo": [ "name" ], "onDelete": "no action", "onUpdate": "no action" }, "node_previous_fk": { "name": "node_previous_fk", "tableFrom": "nodes", "tableTo": "nodes", "columnsFrom": [ "previous" ], "columnsTo": [ "hash" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": { "nodes_hash_unique": { "name": "nodes_hash_unique", "nullsNotDistinct": false, "columns": [ "hash" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false } }, "enums": {}, "schemas": {}, "sequences": {}, "roles": {}, "policies": {}, "views": {}, "_meta": { "columns": {}, "schemas": {}, "tables": {} } }