{ "id": "90741dda-2291-48fc-a730-1d0c20ef1991", "prevId": "00000000-0000-0000-0000-000000000000", "version": "7", "dialect": "postgresql", "tables": { "public.project_category": { "name": "project_category", "schema": "", "columns": { "category_id": { "name": "category_id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "user_id": { "name": "user_id", "type": "uuid", "primaryKey": false, "notNull": false }, "category": { "name": "category", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": false, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": false, "default": "now()" } }, "indexes": {}, "foreignKeys": { "project_category_user_id_users_user_id_fk": { "name": "project_category_user_id_users_user_id_fk", "tableFrom": "project_category", "tableTo": "users", "columnsFrom": [ "user_id" ], "columnsTo": [ "user_id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.projects": { "name": "projects", "schema": "", "columns": { "project_id": { "name": "project_id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "userId": { "name": "userId", "type": "uuid", "primaryKey": false, "notNull": false }, "category": { "name": "category", "type": "uuid", "primaryKey": false, "notNull": false }, "object": { "name": "object", "type": "json", "primaryKey": false, "notNull": false }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": false }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": false }, "is_public": { "name": "is_public", "type": "boolean", "primaryKey": false, "notNull": true, "default": true }, "preview_url": { "name": "preview_url", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": false, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": false, "default": "now()" } }, "indexes": {}, "foreignKeys": { "projects_userId_users_user_id_fk": { "name": "projects_userId_users_user_id_fk", "tableFrom": "projects", "tableTo": "users", "columnsFrom": [ "userId" ], "columnsTo": [ "user_id" ], "onDelete": "no action", "onUpdate": "no action" }, "projects_category_project_category_category_id_fk": { "name": "projects_category_project_category_category_id_fk", "tableFrom": "projects", "tableTo": "project_category", "columnsFrom": [ "category" ], "columnsTo": [ "category_id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.shapes": { "name": "shapes", "schema": "", "columns": { "shape_id": { "name": "shape_id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "shapes": { "name": "shapes", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": false, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": false, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.uploads": { "name": "uploads", "schema": "", "columns": { "upload_id": { "name": "upload_id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "filename": { "name": "filename", "type": "text", "primaryKey": false, "notNull": true }, "url": { "name": "url", "type": "text", "primaryKey": false, "notNull": true }, "projectId": { "name": "projectId", "type": "uuid", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": false, "default": "now()" }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": false, "default": "now()" } }, "indexes": {}, "foreignKeys": { "uploads_projectId_projects_project_id_fk": { "name": "uploads_projectId_projects_project_id_fk", "tableFrom": "uploads", "tableTo": "projects", "columnsFrom": [ "projectId" ], "columnsTo": [ "project_id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.users": { "name": "users", "schema": "", "columns": { "user_id": { "name": "user_id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "email": { "name": "email", "type": "text", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": false }, "password": { "name": "password", "type": "text", "primaryKey": false, "notNull": true }, "is_active": { "name": "is_active", "type": "boolean", "primaryKey": false, "notNull": true, "default": true }, "is_verified": { "name": "is_verified", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "is_admin": { "name": "is_admin", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "refresh_token": { "name": "refresh_token", "type": "text", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false } }, "enums": {}, "schemas": {}, "sequences": {}, "roles": {}, "policies": {}, "views": {}, "_meta": { "columns": {}, "schemas": {}, "tables": {} } }