nodes/store/drizzle/meta/0000_snapshot.json

217 lines
5.0 KiB
JSON
Raw Permalink Normal View History

2024-12-17 18:15:21 +01:00
{
2024-12-20 15:24:54 +01:00
"id": "15ad729d-5756-4c06-87ed-cb8b721201f9",
2024-12-17 18:15:21 +01:00
"prevId": "00000000-0000-0000-0000-000000000000",
"version": "7",
"dialect": "postgresql",
"tables": {
2024-12-20 12:42:45 +01:00
"public.users": {
"name": "users",
2024-12-17 18:15:21 +01:00
"schema": "",
"columns": {
"id": {
"name": "id",
2024-12-20 12:42:45 +01:00
"type": "uuid",
"primaryKey": true,
"notNull": true,
"default": "gen_random_uuid()"
2024-12-17 18:15:21 +01:00
},
2024-12-20 12:42:45 +01:00
"name": {
"name": "name",
"type": "text",
2024-12-17 18:15:21 +01:00
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
2024-12-20 12:42:45 +01:00
"uniqueConstraints": {
"users_name_unique": {
"name": "users_name_unique",
"nullsNotDistinct": false,
"columns": [
"name"
]
}
},
2024-12-17 18:15:21 +01:00
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
2024-12-20 12:42:45 +01:00
"public.nodes": {
"name": "nodes",
2024-12-17 18:15:21 +01:00
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "serial",
"primaryKey": true,
"notNull": true
},
2024-12-20 12:42:45 +01:00
"userId": {
"name": "userId",
"type": "varchar",
"primaryKey": false,
"notNull": true
},
2024-12-20 15:24:54 +01:00
"createdAt": {
"name": "createdAt",
"type": "timestamp",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
2024-12-20 12:42:45 +01:00
"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",
2024-12-20 15:24:54 +01:00
"type": "varchar(16)",
2024-12-20 12:42:45 +01:00
"primaryKey": false,
"notNull": true
},
"previous": {
"name": "previous",
2024-12-20 15:24:54 +01:00
"type": "varchar(16)",
2024-12-17 18:15:21 +01:00
"primaryKey": false,
"notNull": false
}
},
2024-12-20 12:42:45 +01:00
"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": {
2024-12-20 12:46:44 +01:00
"nodes_userId_users_name_fk": {
"name": "nodes_userId_users_name_fk",
2024-12-20 12:42:45 +01:00
"tableFrom": "nodes",
"tableTo": "users",
"columnsFrom": [
"userId"
],
"columnsTo": [
2024-12-20 12:46:44 +01:00
"name"
2024-12-20 12:42:45 +01:00
],
"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"
}
},
2024-12-17 18:15:21 +01:00
"compositePrimaryKeys": {},
2024-12-20 12:49:25 +01:00
"uniqueConstraints": {
"nodes_hash_unique": {
"name": "nodes_hash_unique",
"nullsNotDistinct": false,
"columns": [
"hash"
]
}
},
2024-12-17 18:15:21 +01:00
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
}
},
"enums": {},
"schemas": {},
"sequences": {},
"roles": {},
"policies": {},
"views": {},
"_meta": {
"columns": {},
"schemas": {},
"tables": {}
}
}