{ "version": "5", "dialect": "sqlite", "id": "4d5af5ab-31e5-4202-9c7e-3264e985bf20", "prevId": "00000000-0000-0000-0000-000000000000", "tables": { "files": { "name": "files", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "project_id": { "name": "project_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "parent_id": { "name": "parent_id", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false }, "path": { "name": "path", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "filename": { "name": "filename", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "is_directory": { "name": "is_directory", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": false }, "is_file": { "name": "is_file", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": false }, "is_pinned": { "name": "is_pinned", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false, "default": false }, "content": { "name": "content", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false }, "created_at": { "name": "created_at", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "CURRENT_TIMESTAMP" }, "deleted_at": { "name": "deleted_at", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": { "file_path_idx": { "name": "file_path_idx", "columns": [ "path" ], "isUnique": false }, "file_name_idx": { "name": "file_name_idx", "columns": [ "filename" ], "isUnique": false } }, "foreignKeys": { "files_project_id_projects_id_fk": { "name": "files_project_id_projects_id_fk", "tableFrom": "files", "tableTo": "projects", "columnsFrom": [ "project_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "parent_id_fk": { "name": "parent_id_fk", "tableFrom": "files", "tableTo": "files", "columnsFrom": [ "parent_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "projects": { "name": "projects", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "user_id": { "name": "user_id", "type": "integer", "primaryKey": false, "notNull": true, "autoincrement": false }, "fork_id": { "name": "fork_id", "type": "integer", "primaryKey": false, "notNull": false, "autoincrement": false }, "slug": { "name": "slug", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "title": { "name": "title", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "visibility": { "name": "visibility", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false, "default": "'private'" }, "settings": { "name": "settings", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false, "default": { "css": { "preprocessor": null, "tailwindcss": false }, "js": { "transpiler": null, "packages": [] } } }, "created_at": { "name": "created_at", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "CURRENT_TIMESTAMP" }, "deleted_at": { "name": "deleted_at", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": { "projects_slug_unique": { "name": "projects_slug_unique", "columns": [ "slug" ], "isUnique": true }, "project_visibility_idx": { "name": "project_visibility_idx", "columns": [ "visibility" ], "isUnique": false } }, "foreignKeys": { "projects_user_id_users_id_fk": { "name": "projects_user_id_users_id_fk", "tableFrom": "projects", "tableTo": "users", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "project_fork_id_fk": { "name": "project_fork_id_fk", "tableFrom": "projects", "tableTo": "projects", "columnsFrom": [ "fork_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "users": { "name": "users", "columns": { "id": { "name": "id", "type": "integer", "primaryKey": true, "notNull": true, "autoincrement": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "email": { "name": "email", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "password": { "name": "password", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false }, "created_at": { "name": "created_at", "type": "text", "primaryKey": false, "notNull": true, "autoincrement": false, "default": "CURRENT_TIMESTAMP" }, "deleted_at": { "name": "deleted_at", "type": "text", "primaryKey": false, "notNull": false, "autoincrement": false } }, "indexes": { "users_email_unique": { "name": "users_email_unique", "columns": [ "email" ], "isUnique": true } }, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {} } }, "enums": {}, "_meta": { "schemas": {}, "tables": {}, "columns": {} } }