⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat: migrate from SQLite to PostgreSQL (#315)
Andrejee540d407ce8
diff --git a/.github/workflows/docker-manual.yml b/.github/workflows/docker-manual.ymlnew file mode 100644index 000000000..04c8fd027--- /dev/null+++ b/.github/workflows/docker-manual.yml@@ -0,0 +1,71 @@+name: Manual Docker Build++on:+ workflow_dispatch:+ inputs:+ version:+ description: 'Version to tag the images (e.g., 1.0.0-beta.1, test-branch)'+ required: true+ type: string+ latest:+ description: 'Also tag as latest (use with caution)'+ required: false+ type: boolean+ default: false++env:+ REGISTRY: ghcr.io+ IMAGE_NAME: ${{ github.repository }}++jobs:+ build-and-push-image:+ runs-on: ubuntu-24.04+ strategy:+ fail-fast: false+ matrix:+ include:+ - dockerfile: ./apps/web/Dockerfile+ image: ghcr.io/${{ github.repository_owner }}/web+ - dockerfile: ./apps/api/Dockerfile+ image: ghcr.io/${{ github.repository_owner }}/api+ permissions:+ contents: read+ packages: write++ steps:+ - name: Checkout repository+ uses: actions/checkout@v4++ - name: Set up QEMU+ uses: docker/setup-qemu-action@v3++ - name: Set up Docker Buildx+ uses: docker/setup-buildx-action@v3++ - name: Log in to GitHub Container Registry+ uses: docker/login-action@v3+ with:+ registry: ${{ env.REGISTRY }}+ username: ${{ github.actor }}+ password: ${{ secrets.GH_PACKAGE_TOKEN }}++ - name: Extract metadata+ id: meta+ uses: docker/metadata-action@v5+ with:+ images: ${{ matrix.image }}+ tags: |+ type=raw,value=${{ inputs.version }}+ type=raw,value=latest,enable=${{ inputs.latest }}++ - name: Build and push+ uses: docker/build-push-action@v5+ with:+ context: .+ file: ${{ matrix.dockerfile }}+ platforms: linux/amd64,linux/arm64+ push: true+ tags: ${{ steps.meta.outputs.tags }}+ labels: ${{ steps.meta.outputs.labels }}+ cache-from: type=gha+ cache-to: type=gha,mode=max\ No newline at end of filediff --git a/.github/workflows/docker.yml b/.github/workflows/docker.ymlindex 7973c0bfb..004374062 100644--- a/.github/workflows/docker.yml+++ b/.github/workflows/docker.yml@@ -2,13 +2,16 @@ name: Build & publish images to GHCRon:workflow_dispatch:- push:- branches:- - main- paths:- - 'apps/**'- - 'packages/**'- - pnpm-lock.yaml+ inputs:+ version:+ description: 'Version to tag the images (e.g., 1.0.0)'+ required: true+ type: string+ latest:+ description: 'Also tag as latest'+ required: false+ type: boolean+ default: falseenv:REGISTRY: ghcr.io@@ -52,10 +55,8 @@ jobs:with:images: ${{ matrix.image }}tags: |- type=ref,event=branch- type=ref,event=tag- type=sha- type=raw,value=latest+ type=raw,value=${{ inputs.version }}+ type=raw,value=latest,enable=${{ inputs.latest }}- name: Build and pushuses: docker/build-push-action@v5diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex ba3d0e5c4..02dfca55e 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -14,6 +14,7 @@ jobs:permissions:contents: writepull-requests: write+ actions: writesteps:- name: Checkout@@ -39,7 +40,7 @@ jobs:run: |BUMP=$(bunx conventional-recommended-bump -p angular)echo "bump=$BUMP" >> $GITHUB_OUTPUT-+- name: Get current versionid: current_versionrun: |@@ -93,4 +94,21 @@ jobs:draft: falseprerelease: falseenv:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\ No newline at end of file+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}++ - name: Trigger Docker Build+ uses: actions/github-script@v7+ with:+ github-token: ${{ secrets.GITHUB_TOKEN }}+ script: |+ await github.rest.actions.createWorkflowDispatch({+ owner: context.repo.owner,+ repo: context.repo.repo,+ workflow_id: 'docker.yml',+ ref: 'main',+ inputs: {+ version: '${{ steps.new_version.outputs.version }}',+ latest: 'true'+ }+ });+ console.log('Triggered Docker build for version ${{ steps.new_version.outputs.version }}');\ No newline at end of filediff --git a/README.md b/README.mdindex e943b8759..02ae138ef 100644--- a/README.md+++ b/README.md@@ -40,20 +40,30 @@ We built Kaneo because existing project management tools either feel bloated wit## Getting Started-The fastest way to try Kaneo is with Docker Compose. This sets up both the API and web interface:+The fastest way to try Kaneo is with Docker Compose. This sets up the API, web interface, and PostgreSQL database:```yamlservices:+ postgres:+ image: postgres:16-alpine+ environment:+ POSTGRES_DB: kaneo+ POSTGRES_USER: kaneo_user+ POSTGRES_PASSWORD: kaneo_password+ volumes:+ - postgres_data:/var/lib/postgresql/data+ restart: unless-stopped+backend:image: ghcr.io/usekaneo/api:latestenvironment:JWT_ACCESS: "your-secret-key-here"- DB_PATH: "/app/apps/api/data/kaneo.db"+ DATABASE_URL: "postgresql://kaneo_user:kaneo_password@postgres:5432/kaneo"ports:- 1337:1337+ depends_on:+ - postgresrestart: unless-stopped- volumes:- - sqlite_data:/app/apps/api/datafrontend:image: ghcr.io/usekaneo/web:latest@@ -61,10 +71,12 @@ services:KANEO_API_URL: "http://localhost:1337"ports:- 5173:5173+ depends_on:+ - backendrestart: unless-stoppedvolumes:- sqlite_data:+ postgres_data:```Save this as `compose.yml`, run `docker compose up -d`, and open [http://localhost:5173](http://localhost:5173).@@ -77,9 +89,25 @@ Save this as `compose.yml`, run `docker compose up -d`, and open [http://localho| -------- | ------------ | ------- || `KANEO_API_URL` | Where the web app finds the API | Required || `JWT_ACCESS` | Secret key for user authentication | Required |-| `DB_PATH` | SQLite database location | `/app/apps/api/data/kaneo.db` |+| `DATABASE_URL` | PostgreSQL connection string | Required || `DISABLE_REGISTRATION` | Block new user signups | `true` |+### Database Setup++Kaneo uses PostgreSQL for data storage. The Docker Compose setup above handles this automatically, but if you're running Kaneo outside of Docker, you'll need to:++1. **Install PostgreSQL** (version 12 or higher)+2. **Create a database and user:**+ ```sql+ CREATE DATABASE kaneo;+ CREATE USER kaneo_user WITH PASSWORD 'your_password';+ GRANT ALL PRIVILEGES ON DATABASE kaneo TO kaneo_user;+ ```+3. **Set the DATABASE_URL environment variable:**+ ```bash+ export DATABASE_URL="postgresql://kaneo_user:your_password@localhost:5432/kaneo"+ ```+## Kubernetes DeploymentIf you're running Kubernetes, we have a Helm chart that handles the complexity:@@ -123,8 +151,17 @@ git clone https://github.com/usekaneo/kaneo.gitcd kaneopnpm install-# Start the API+# Start PostgreSQL (using Docker)+docker run --name kaneo-postgres -e POSTGRES_DB=kaneo -e POSTGRES_USER=kaneo_user -e POSTGRES_PASSWORD=kaneo_password -p 5432:5432 -d postgres:16-alpine++# Set up environment variablescd apps/api+echo "DATABASE_URL=postgresql://kaneo_user:kaneo_password@localhost:5432/kaneo" > .env++# Run database migrations+pnpm run db:migrate++# Start the APIpnpm run dev# In another terminal, start the web app@@ -134,6 +171,16 @@ pnpm run devThe API runs on port 1337, web app on 5173. Both will reload when you make changes.+## Migration from SQLite++If you're upgrading from a previous version that used SQLite, you'll need to migrate your data to PostgreSQL. We recommend:++1. **Export your data** from the old SQLite database+2. **Set up PostgreSQL** using the new Docker Compose configuration+3. **Import your data** into the new PostgreSQL database++Contact us on [Discord](https://discord.gg/rU4tSyhXXU) if you need help with the migration process.+## Community- **[Discord](https://discord.gg/rU4tSyhXXU)** - Chat with users and contributorsdiff --git a/apps/api/drizzle.config.ts b/apps/api/drizzle.config.tsindex 857106277..3b61bef09 100644--- a/apps/api/drizzle.config.ts+++ b/apps/api/drizzle.config.ts@@ -1,10 +1,15 @@+import dotenv from "dotenv";import { type Config, defineConfig } from "drizzle-kit";+dotenv.config();+export default defineConfig({out: "./drizzle",schema: "./src/database/schema.ts",- dialect: "sqlite",+ dialect: "postgresql",dbCredentials: {- url: "file:kaneo.db",+ url:+ process.env.DATABASE_URL ||+ "postgresql://kaneo_user:kaneo_password@localhost:5432/kaneo",},}) satisfies Config;diff --git a/apps/api/drizzle/0000_deep_spot.sql b/apps/api/drizzle/0000_deep_spot.sqldeleted file mode 100644index 75642c714..000000000--- a/apps/api/drizzle/0000_deep_spot.sql+++ /dev/null@@ -1,73 +0,0 @@-CREATE TABLE IF NOT EXISTS `activity` (- `id` text PRIMARY KEY NOT NULL,- `task_id` text NOT NULL,- `type` text NOT NULL,- `created_at` integer DEFAULT '"2025-04-17T20:55:01.755Z"' NOT NULL,- `user_email` text NOT NULL,- `content` text,- FOREIGN KEY (`task_id`) REFERENCES `task`(`id`) ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY (`user_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE TABLE IF NOT EXISTS `project` (- `id` text PRIMARY KEY NOT NULL,- `workspace_id` text NOT NULL,- `slug` text NOT NULL,- `icon` text DEFAULT 'Layout',- `name` text NOT NULL,- `description` text,- `created_at` integer DEFAULT '"2025-04-17T20:55:01.755Z"' NOT NULL,- FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE TABLE IF NOT EXISTS `session` (- `id` text PRIMARY KEY NOT NULL,- `user_id` text NOT NULL,- `expires_at` integer NOT NULL,- FOREIGN KEY (`user_id`) REFERENCES `user`(`id`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE TABLE IF NOT EXISTS `task` (- `id` text PRIMARY KEY NOT NULL,- `project_id` text NOT NULL,- `position` integer DEFAULT 0,- `number` integer DEFAULT 1,- `assignee_email` text,- `title` text NOT NULL,- `description` text,- `status` text DEFAULT 'to-do' NOT NULL,- `priority` text DEFAULT 'low',- `due_date` integer,- `created_at` integer DEFAULT '"2025-04-17T20:55:01.755Z"' NOT NULL,- FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY (`assignee_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE TABLE IF NOT EXISTS `user` (- `id` text PRIMARY KEY NOT NULL,- `name` text NOT NULL,- `password` text NOT NULL,- `email` text NOT NULL,- `created_at` integer DEFAULT '"2025-04-17T20:55:01.754Z"' NOT NULL-);---> statement-breakpoint-CREATE UNIQUE INDEX IF NOT EXISTS `user_email_unique` ON `user` (`email`);--> statement-breakpoint-CREATE TABLE IF NOT EXISTS `workspace` (- `id` text PRIMARY KEY NOT NULL,- `name` text NOT NULL,- `description` text,- `owner_email` text NOT NULL,- `created_at` integer DEFAULT '"2025-04-17T20:55:01.755Z"' NOT NULL,- FOREIGN KEY (`owner_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-CREATE TABLE IF NOT EXISTS `workspace_member` (- `id` text PRIMARY KEY NOT NULL,- `workspace_id` text NOT NULL,- `user_email` text NOT NULL,- `role` text DEFAULT 'member' NOT NULL,- `joined_at` integer DEFAULT '"2025-04-17T20:55:01.755Z"' NOT NULL,- `status` text DEFAULT 'pending' NOT NULL,- FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY (`user_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);diff --git a/apps/api/drizzle/0000_new_ted_forrester.sql b/apps/api/drizzle/0000_new_ted_forrester.sqlnew file mode 100644index 000000000..5143088f4--- /dev/null+++ b/apps/api/drizzle/0000_new_ted_forrester.sql@@ -0,0 +1,110 @@+CREATE TABLE "activity" (+ "id" text PRIMARY KEY NOT NULL,+ "task_id" text NOT NULL,+ "type" text NOT NULL,+ "created_at" timestamp DEFAULT now() NOT NULL,+ "user_email" text NOT NULL,+ "content" text+);+--> statement-breakpoint+CREATE TABLE "label" (+ "id" text PRIMARY KEY NOT NULL,+ "name" text NOT NULL,+ "color" text NOT NULL,+ "created_at" timestamp DEFAULT now() NOT NULL,+ "task_id" text NOT NULL+);+--> statement-breakpoint+CREATE TABLE "notification" (+ "id" text PRIMARY KEY NOT NULL,+ "user_email" text NOT NULL,+ "title" text NOT NULL,+ "content" text,+ "type" text DEFAULT 'info' NOT NULL,+ "is_read" boolean DEFAULT false,+ "resource_id" text,+ "resource_type" text,+ "created_at" timestamp DEFAULT now() NOT NULL+);+--> statement-breakpoint+CREATE TABLE "project" (+ "id" text PRIMARY KEY NOT NULL,+ "workspace_id" text NOT NULL,+ "slug" text NOT NULL,+ "icon" text DEFAULT 'Layout',+ "name" text NOT NULL,+ "description" text,+ "created_at" timestamp DEFAULT now() NOT NULL,+ "is_public" boolean DEFAULT false+);+--> statement-breakpoint+CREATE TABLE "session" (+ "id" text PRIMARY KEY NOT NULL,+ "user_id" text NOT NULL,+ "expires_at" timestamp NOT NULL+);+--> statement-breakpoint+CREATE TABLE "task" (+ "id" text PRIMARY KEY NOT NULL,+ "project_id" text NOT NULL,+ "position" integer DEFAULT 0,+ "number" integer DEFAULT 1,+ "assignee_email" text,+ "title" text NOT NULL,+ "description" text,+ "status" text DEFAULT 'to-do' NOT NULL,+ "priority" text DEFAULT 'low',+ "due_date" timestamp,+ "created_at" timestamp DEFAULT now() NOT NULL+);+--> statement-breakpoint+CREATE TABLE "time_entry" (+ "id" text PRIMARY KEY NOT NULL,+ "task_id" text NOT NULL,+ "user_email" text,+ "description" text,+ "start_time" timestamp NOT NULL,+ "end_time" timestamp,+ "duration" integer DEFAULT 0,+ "created_at" timestamp DEFAULT now() NOT NULL+);+--> statement-breakpoint+CREATE TABLE "user" (+ "id" text PRIMARY KEY NOT NULL,+ "name" text NOT NULL,+ "password" text NOT NULL,+ "email" text NOT NULL,+ "created_at" timestamp DEFAULT now() NOT NULL,+ CONSTRAINT "user_email_unique" UNIQUE("email")+);+--> statement-breakpoint+CREATE TABLE "workspace" (+ "id" text PRIMARY KEY NOT NULL,+ "name" text NOT NULL,+ "description" text,+ "owner_email" text NOT NULL,+ "created_at" timestamp DEFAULT now() NOT NULL+);+--> statement-breakpoint+CREATE TABLE "workspace_member" (+ "id" text PRIMARY KEY NOT NULL,+ "workspace_id" text NOT NULL,+ "user_email" text,+ "role" text DEFAULT 'member' NOT NULL,+ "joined_at" timestamp DEFAULT now() NOT NULL,+ "status" text DEFAULT 'pending' NOT NULL+);+--> statement-breakpoint+ALTER TABLE "activity" ADD CONSTRAINT "activity_task_id_task_id_fk" FOREIGN KEY ("task_id") REFERENCES "public"."task"("id") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint+ALTER TABLE "activity" ADD CONSTRAINT "activity_user_email_user_email_fk" FOREIGN KEY ("user_email") REFERENCES "public"."user"("email") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint+ALTER TABLE "label" ADD CONSTRAINT "label_task_id_task_id_fk" FOREIGN KEY ("task_id") REFERENCES "public"."task"("id") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint+ALTER TABLE "notification" ADD CONSTRAINT "notification_user_email_user_email_fk" FOREIGN KEY ("user_email") REFERENCES "public"."user"("email") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint+ALTER TABLE "project" ADD CONSTRAINT "project_workspace_id_workspace_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspace"("id") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint+ALTER TABLE "session" ADD CONSTRAINT "session_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint+ALTER TABLE "task" ADD CONSTRAINT "task_project_id_project_id_fk" FOREIGN KEY ("project_id") REFERENCES "public"."project"("id") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint+ALTER TABLE "task" ADD CONSTRAINT "task_assignee_email_user_email_fk" FOREIGN KEY ("assignee_email") REFERENCES "public"."user"("email") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint+ALTER TABLE "time_entry" ADD CONSTRAINT "time_entry_task_id_task_id_fk" FOREIGN KEY ("task_id") REFERENCES "public"."task"("id") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint+ALTER TABLE "time_entry" ADD CONSTRAINT "time_entry_user_email_user_email_fk" FOREIGN KEY ("user_email") REFERENCES "public"."user"("email") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint+ALTER TABLE "workspace" ADD CONSTRAINT "workspace_owner_email_user_email_fk" FOREIGN KEY ("owner_email") REFERENCES "public"."user"("email") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint+ALTER TABLE "workspace_member" ADD CONSTRAINT "workspace_member_workspace_id_workspace_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspace"("id") ON DELETE cascade ON UPDATE cascade;--> statement-breakpoint+ALTER TABLE "workspace_member" ADD CONSTRAINT "workspace_member_user_email_user_email_fk" FOREIGN KEY ("user_email") REFERENCES "public"."user"("email") ON DELETE cascade ON UPDATE cascade;\ No newline at end of filediff --git a/apps/api/drizzle/0001_blue_unicorn.sql b/apps/api/drizzle/0001_blue_unicorn.sqldeleted file mode 100644index 8a9f83b62..000000000--- a/apps/api/drizzle/0001_blue_unicorn.sql+++ /dev/null@@ -1,87 +0,0 @@-PRAGMA foreign_keys=OFF;--> statement-breakpoint-CREATE TABLE `__new_activity` (- `id` text PRIMARY KEY NOT NULL,- `task_id` text NOT NULL,- `type` text NOT NULL,- `created_at` integer DEFAULT '"2025-04-20T15:06:18.576Z"' NOT NULL,- `user_email` text NOT NULL,- `content` text,- FOREIGN KEY (`task_id`) REFERENCES `task`(`id`) ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY (`user_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_activity`("id", "task_id", "type", "created_at", "user_email", "content") SELECT "id", "task_id", "type", "created_at", "user_email", "content" FROM `activity`;--> statement-breakpoint-DROP TABLE `activity`;--> statement-breakpoint-ALTER TABLE `__new_activity` RENAME TO `activity`;--> statement-breakpoint-PRAGMA foreign_keys=ON;--> statement-breakpoint-CREATE TABLE `__new_project` (- `id` text PRIMARY KEY NOT NULL,- `workspace_id` text NOT NULL,- `slug` text NOT NULL,- `icon` text DEFAULT 'Layout',- `name` text NOT NULL,- `description` text,- `created_at` integer DEFAULT '"2025-04-20T15:06:18.576Z"' NOT NULL,- FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_project`("id", "workspace_id", "slug", "icon", "name", "description", "created_at") SELECT "id", "workspace_id", "slug", "icon", "name", "description", "created_at" FROM `project`;--> statement-breakpoint-DROP TABLE `project`;--> statement-breakpoint-ALTER TABLE `__new_project` RENAME TO `project`;--> statement-breakpoint-CREATE TABLE `__new_task` (- `id` text PRIMARY KEY NOT NULL,- `project_id` text NOT NULL,- `position` integer DEFAULT 0,- `number` integer DEFAULT 1,- `assignee_email` text,- `title` text NOT NULL,- `description` text,- `status` text DEFAULT 'to-do' NOT NULL,- `priority` text DEFAULT 'low',- `due_date` integer,- `created_at` integer DEFAULT '"2025-04-20T15:06:18.576Z"' NOT NULL,- FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY (`assignee_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_task`("id", "project_id", "position", "number", "assignee_email", "title", "description", "status", "priority", "due_date", "created_at") SELECT "id", "project_id", "position", "number", "assignee_email", "title", "description", "status", "priority", "due_date", "created_at" FROM `task`;--> statement-breakpoint-DROP TABLE `task`;--> statement-breakpoint-ALTER TABLE `__new_task` RENAME TO `task`;--> statement-breakpoint-CREATE TABLE `__new_user` (- `id` text PRIMARY KEY NOT NULL,- `name` text NOT NULL,- `password` text NOT NULL,- `email` text NOT NULL,- `created_at` integer DEFAULT '"2025-04-20T15:06:18.575Z"' NOT NULL-);---> statement-breakpoint-INSERT INTO `__new_user`("id", "name", "password", "email", "created_at") SELECT "id", "name", "password", "email", "created_at" FROM `user`;--> statement-breakpoint-DROP TABLE `user`;--> statement-breakpoint-ALTER TABLE `__new_user` RENAME TO `user`;--> statement-breakpoint-CREATE UNIQUE INDEX `user_email_unique` ON `user` (`email`);--> statement-breakpoint-CREATE TABLE `__new_workspace` (- `id` text PRIMARY KEY NOT NULL,- `name` text NOT NULL,- `description` text,- `owner_email` text NOT NULL,- `created_at` integer DEFAULT '"2025-04-20T15:06:18.575Z"' NOT NULL,- FOREIGN KEY (`owner_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_workspace`("id", "name", "description", "owner_email", "created_at") SELECT "id", "name", "description", "owner_email", "created_at" FROM `workspace`;--> statement-breakpoint-DROP TABLE `workspace`;--> statement-breakpoint-ALTER TABLE `__new_workspace` RENAME TO `workspace`;--> statement-breakpoint-CREATE TABLE `__new_workspace_member` (- `id` text PRIMARY KEY NOT NULL,- `workspace_id` text NOT NULL,- `user_email` text,- `role` text DEFAULT 'member' NOT NULL,- `joined_at` integer DEFAULT '"2025-04-20T15:06:18.575Z"' NOT NULL,- `status` text DEFAULT 'pending' NOT NULL,- FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY (`user_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_workspace_member`("id", "workspace_id", "user_email", "role", "joined_at", "status") SELECT "id", "workspace_id", "user_email", "role", "joined_at", "status" FROM `workspace_member`;--> statement-breakpoint-DROP TABLE `workspace_member`;--> statement-breakpoint-ALTER TABLE `__new_workspace_member` RENAME TO `workspace_member`;\ No newline at end of filediff --git a/apps/api/drizzle/0002_many_lake.sql b/apps/api/drizzle/0002_many_lake.sqldeleted file mode 100644index 4312e331e..000000000--- a/apps/api/drizzle/0002_many_lake.sql+++ /dev/null@@ -1,86 +0,0 @@-PRAGMA foreign_keys=OFF;--> statement-breakpoint-CREATE TABLE `__new_workspace_member` (- `id` text PRIMARY KEY NOT NULL,- `workspace_id` text NOT NULL,- `user_email` text,- `role` text DEFAULT 'member' NOT NULL,- `joined_at` integer DEFAULT '"2025-04-20T15:14:33.402Z"' NOT NULL,- `status` text DEFAULT 'pending' NOT NULL,- FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_workspace_member`("id", "workspace_id", "user_email", "role", "joined_at", "status") SELECT "id", "workspace_id", "user_email", "role", "joined_at", "status" FROM `workspace_member`;--> statement-breakpoint-DROP TABLE `workspace_member`;--> statement-breakpoint-ALTER TABLE `__new_workspace_member` RENAME TO `workspace_member`;--> statement-breakpoint-PRAGMA foreign_keys=ON;--> statement-breakpoint-CREATE TABLE `__new_activity` (- `id` text PRIMARY KEY NOT NULL,- `task_id` text NOT NULL,- `type` text NOT NULL,- `created_at` integer DEFAULT '"2025-04-20T15:14:33.402Z"' NOT NULL,- `user_email` text NOT NULL,- `content` text,- FOREIGN KEY (`task_id`) REFERENCES `task`(`id`) ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY (`user_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_activity`("id", "task_id", "type", "created_at", "user_email", "content") SELECT "id", "task_id", "type", "created_at", "user_email", "content" FROM `activity`;--> statement-breakpoint-DROP TABLE `activity`;--> statement-breakpoint-ALTER TABLE `__new_activity` RENAME TO `activity`;--> statement-breakpoint-CREATE TABLE `__new_project` (- `id` text PRIMARY KEY NOT NULL,- `workspace_id` text NOT NULL,- `slug` text NOT NULL,- `icon` text DEFAULT 'Layout',- `name` text NOT NULL,- `description` text,- `created_at` integer DEFAULT '"2025-04-20T15:14:33.402Z"' NOT NULL,- FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_project`("id", "workspace_id", "slug", "icon", "name", "description", "created_at") SELECT "id", "workspace_id", "slug", "icon", "name", "description", "created_at" FROM `project`;--> statement-breakpoint-DROP TABLE `project`;--> statement-breakpoint-ALTER TABLE `__new_project` RENAME TO `project`;--> statement-breakpoint-CREATE TABLE `__new_task` (- `id` text PRIMARY KEY NOT NULL,- `project_id` text NOT NULL,- `position` integer DEFAULT 0,- `number` integer DEFAULT 1,- `assignee_email` text,- `title` text NOT NULL,- `description` text,- `status` text DEFAULT 'to-do' NOT NULL,- `priority` text DEFAULT 'low',- `due_date` integer,- `created_at` integer DEFAULT '"2025-04-20T15:14:33.402Z"' NOT NULL,- FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY (`assignee_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_task`("id", "project_id", "position", "number", "assignee_email", "title", "description", "status", "priority", "due_date", "created_at") SELECT "id", "project_id", "position", "number", "assignee_email", "title", "description", "status", "priority", "due_date", "created_at" FROM `task`;--> statement-breakpoint-DROP TABLE `task`;--> statement-breakpoint-ALTER TABLE `__new_task` RENAME TO `task`;--> statement-breakpoint-CREATE TABLE `__new_user` (- `id` text PRIMARY KEY NOT NULL,- `name` text NOT NULL,- `password` text NOT NULL,- `email` text NOT NULL,- `created_at` integer DEFAULT '"2025-04-20T15:14:33.401Z"' NOT NULL-);---> statement-breakpoint-INSERT INTO `__new_user`("id", "name", "password", "email", "created_at") SELECT "id", "name", "password", "email", "created_at" FROM `user`;--> statement-breakpoint-DROP TABLE `user`;--> statement-breakpoint-ALTER TABLE `__new_user` RENAME TO `user`;--> statement-breakpoint-CREATE UNIQUE INDEX `user_email_unique` ON `user` (`email`);--> statement-breakpoint-CREATE TABLE `__new_workspace` (- `id` text PRIMARY KEY NOT NULL,- `name` text NOT NULL,- `description` text,- `owner_email` text NOT NULL,- `created_at` integer DEFAULT '"2025-04-20T15:14:33.401Z"' NOT NULL,- FOREIGN KEY (`owner_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_workspace`("id", "name", "description", "owner_email", "created_at") SELECT "id", "name", "description", "owner_email", "created_at" FROM `workspace`;--> statement-breakpoint-DROP TABLE `workspace`;--> statement-breakpoint-ALTER TABLE `__new_workspace` RENAME TO `workspace`;\ No newline at end of filediff --git a/apps/api/drizzle/0003_daffy_amazoness.sql b/apps/api/drizzle/0003_daffy_amazoness.sqldeleted file mode 100644index 4e4d51878..000000000--- a/apps/api/drizzle/0003_daffy_amazoness.sql+++ /dev/null@@ -1,99 +0,0 @@-CREATE TABLE `time_entry` (- `id` text PRIMARY KEY NOT NULL,- `task_id` text NOT NULL,- `user_email` text,- `description` text,- `start_time` integer NOT NULL,- `end_time` integer,- `duration` integer DEFAULT 0,- `created_at` integer DEFAULT '"2025-04-21T21:14:02.512Z"' NOT NULL,- FOREIGN KEY (`task_id`) REFERENCES `task`(`id`) ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY (`user_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-PRAGMA foreign_keys=OFF;--> statement-breakpoint-CREATE TABLE `__new_activity` (- `id` text PRIMARY KEY NOT NULL,- `task_id` text NOT NULL,- `type` text NOT NULL,- `created_at` integer DEFAULT '"2025-04-21T21:14:02.512Z"' NOT NULL,- `user_email` text NOT NULL,- `content` text,- FOREIGN KEY (`task_id`) REFERENCES `task`(`id`) ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY (`user_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_activity`("id", "task_id", "type", "created_at", "user_email", "content") SELECT "id", "task_id", "type", "created_at", "user_email", "content" FROM `activity`;--> statement-breakpoint-DROP TABLE `activity`;--> statement-breakpoint-ALTER TABLE `__new_activity` RENAME TO `activity`;--> statement-breakpoint-PRAGMA foreign_keys=ON;--> statement-breakpoint-CREATE TABLE `__new_project` (- `id` text PRIMARY KEY NOT NULL,- `workspace_id` text NOT NULL,- `slug` text NOT NULL,- `icon` text DEFAULT 'Layout',- `name` text NOT NULL,- `description` text,- `created_at` integer DEFAULT '"2025-04-21T21:14:02.511Z"' NOT NULL,- FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_project`("id", "workspace_id", "slug", "icon", "name", "description", "created_at") SELECT "id", "workspace_id", "slug", "icon", "name", "description", "created_at" FROM `project`;--> statement-breakpoint-DROP TABLE `project`;--> statement-breakpoint-ALTER TABLE `__new_project` RENAME TO `project`;--> statement-breakpoint-CREATE TABLE `__new_task` (- `id` text PRIMARY KEY NOT NULL,- `project_id` text NOT NULL,- `position` integer DEFAULT 0,- `number` integer DEFAULT 1,- `assignee_email` text,- `title` text NOT NULL,- `description` text,- `status` text DEFAULT 'to-do' NOT NULL,- `priority` text DEFAULT 'low',- `due_date` integer,- `created_at` integer DEFAULT '"2025-04-21T21:14:02.512Z"' NOT NULL,- FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY (`assignee_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_task`("id", "project_id", "position", "number", "assignee_email", "title", "description", "status", "priority", "due_date", "created_at") SELECT "id", "project_id", "position", "number", "assignee_email", "title", "description", "status", "priority", "due_date", "created_at" FROM `task`;--> statement-breakpoint-DROP TABLE `task`;--> statement-breakpoint-ALTER TABLE `__new_task` RENAME TO `task`;--> statement-breakpoint-CREATE TABLE `__new_user` (- `id` text PRIMARY KEY NOT NULL,- `name` text NOT NULL,- `password` text NOT NULL,- `email` text NOT NULL,- `created_at` integer DEFAULT '"2025-04-21T21:14:02.511Z"' NOT NULL-);---> statement-breakpoint-INSERT INTO `__new_user`("id", "name", "password", "email", "created_at") SELECT "id", "name", "password", "email", "created_at" FROM `user`;--> statement-breakpoint-DROP TABLE `user`;--> statement-breakpoint-ALTER TABLE `__new_user` RENAME TO `user`;--> statement-breakpoint-CREATE UNIQUE INDEX `user_email_unique` ON `user` (`email`);--> statement-breakpoint-CREATE TABLE `__new_workspace` (- `id` text PRIMARY KEY NOT NULL,- `name` text NOT NULL,- `description` text,- `owner_email` text NOT NULL,- `created_at` integer DEFAULT '"2025-04-21T21:14:02.511Z"' NOT NULL,- FOREIGN KEY (`owner_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_workspace`("id", "name", "description", "owner_email", "created_at") SELECT "id", "name", "description", "owner_email", "created_at" FROM `workspace`;--> statement-breakpoint-DROP TABLE `workspace`;--> statement-breakpoint-ALTER TABLE `__new_workspace` RENAME TO `workspace`;--> statement-breakpoint-CREATE TABLE `__new_workspace_member` (- `id` text PRIMARY KEY NOT NULL,- `workspace_id` text NOT NULL,- `user_email` text,- `role` text DEFAULT 'member' NOT NULL,- `joined_at` integer DEFAULT '"2025-04-21T21:14:02.511Z"' NOT NULL,- `status` text DEFAULT 'pending' NOT NULL,- FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_workspace_member`("id", "workspace_id", "user_email", "role", "joined_at", "status") SELECT "id", "workspace_id", "user_email", "role", "joined_at", "status" FROM `workspace_member`;--> statement-breakpoint-DROP TABLE `workspace_member`;--> statement-breakpoint-ALTER TABLE `__new_workspace_member` RENAME TO `workspace_member`;\ No newline at end of filediff --git a/apps/api/drizzle/0004_small_dragon_lord.sql b/apps/api/drizzle/0004_small_dragon_lord.sqldeleted file mode 100644index 8f710c97b..000000000--- a/apps/api/drizzle/0004_small_dragon_lord.sql+++ /dev/null@@ -1,98 +0,0 @@-CREATE TABLE `label` (- `id` text PRIMARY KEY NOT NULL,- `name` text NOT NULL,- `color` text NOT NULL,- `created_at` integer DEFAULT '"2025-05-01T02:35:11.789Z"' NOT NULL,- `task_id` text NOT NULL,- FOREIGN KEY (`task_id`) REFERENCES `task`(`id`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-PRAGMA foreign_keys=OFF;--> statement-breakpoint-CREATE TABLE `__new_project` (- `id` text PRIMARY KEY NOT NULL,- `workspace_id` text NOT NULL,- `slug` text NOT NULL,- `icon` text DEFAULT 'Layout',- `name` text NOT NULL,- `description` text,- `created_at` integer DEFAULT '"2025-05-01T02:35:11.789Z"' NOT NULL,- FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_project`("id", "workspace_id", "slug", "icon", "name", "description", "created_at") SELECT "id", "workspace_id", "slug", "icon", "name", "description", "created_at" FROM `project`;--> statement-breakpoint-DROP TABLE `project`;--> statement-breakpoint-ALTER TABLE `__new_project` RENAME TO `project`;--> statement-breakpoint-CREATE TABLE `__new_task` (- `id` text PRIMARY KEY NOT NULL,- `project_id` text NOT NULL,- `position` integer DEFAULT 0,- `number` integer DEFAULT 1,- `assignee_email` text,- `title` text NOT NULL,- `description` text,- `status` text DEFAULT 'to-do' NOT NULL,- `priority` text DEFAULT 'low',- `due_date` integer,- `created_at` integer DEFAULT '"2025-05-01T02:35:11.789Z"' NOT NULL,- FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY (`assignee_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_task`("id", "project_id", "position", "number", "assignee_email", "title", "description", "status", "priority", "due_date", "created_at") SELECT "id", "project_id", "position", "number", "assignee_email", "title", "description", "status", "priority", "due_date", "created_at" FROM `task`;--> statement-breakpoint-DROP TABLE `task`;--> statement-breakpoint-ALTER TABLE `__new_task` RENAME TO `task`;--> statement-breakpoint-CREATE TABLE `__new_time_entry` (- `id` text PRIMARY KEY NOT NULL,- `task_id` text NOT NULL,- `user_email` text,- `description` text,- `start_time` integer NOT NULL,- `end_time` integer,- `duration` integer DEFAULT 0,- `created_at` integer DEFAULT '"2025-05-01T02:35:11.789Z"' NOT NULL,- FOREIGN KEY (`task_id`) REFERENCES `task`(`id`) ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY (`user_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_time_entry`("id", "task_id", "user_email", "description", "start_time", "end_time", "duration", "created_at") SELECT "id", "task_id", "user_email", "description", "start_time", "end_time", "duration", "created_at" FROM `time_entry`;--> statement-breakpoint-DROP TABLE `time_entry`;--> statement-breakpoint-ALTER TABLE `__new_time_entry` RENAME TO `time_entry`;--> statement-breakpoint-CREATE TABLE `__new_user` (- `id` text PRIMARY KEY NOT NULL,- `name` text NOT NULL,- `password` text NOT NULL,- `email` text NOT NULL,- `created_at` integer DEFAULT '"2025-05-01T02:35:11.788Z"' NOT NULL-);---> statement-breakpoint-INSERT INTO `__new_user`("id", "name", "password", "email", "created_at") SELECT "id", "name", "password", "email", "created_at" FROM `user`;--> statement-breakpoint-DROP TABLE `user`;--> statement-breakpoint-ALTER TABLE `__new_user` RENAME TO `user`;--> statement-breakpoint-CREATE UNIQUE INDEX `user_email_unique` ON `user` (`email`);--> statement-breakpoint-CREATE TABLE `__new_workspace` (- `id` text PRIMARY KEY NOT NULL,- `name` text NOT NULL,- `description` text,- `owner_email` text NOT NULL,- `created_at` integer DEFAULT '"2025-05-01T02:35:11.789Z"' NOT NULL,- FOREIGN KEY (`owner_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_workspace`("id", "name", "description", "owner_email", "created_at") SELECT "id", "name", "description", "owner_email", "created_at" FROM `workspace`;--> statement-breakpoint-DROP TABLE `workspace`;--> statement-breakpoint-ALTER TABLE `__new_workspace` RENAME TO `workspace`;--> statement-breakpoint-CREATE TABLE `__new_workspace_member` (- `id` text PRIMARY KEY NOT NULL,- `workspace_id` text NOT NULL,- `user_email` text,- `role` text DEFAULT 'member' NOT NULL,- `joined_at` integer DEFAULT '"2025-05-01T02:35:11.789Z"' NOT NULL,- `status` text DEFAULT 'pending' NOT NULL,- FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_workspace_member`("id", "workspace_id", "user_email", "role", "joined_at", "status") SELECT "id", "workspace_id", "user_email", "role", "joined_at", "status" FROM `workspace_member`;--> statement-breakpoint-DROP TABLE `workspace_member`;--> statement-breakpoint-ALTER TABLE `__new_workspace_member` RENAME TO `workspace_member`;---> statement-breakpoint-PRAGMA foreign_keys=ON;\ No newline at end of filediff --git a/apps/api/drizzle/0005_faulty_xorn.sql b/apps/api/drizzle/0005_faulty_xorn.sqldeleted file mode 100644index 270b3ec92..000000000--- a/apps/api/drizzle/0005_faulty_xorn.sql+++ /dev/null@@ -1,127 +0,0 @@-CREATE TABLE `notification` (- `id` text PRIMARY KEY NOT NULL,- `user_email` text NOT NULL,- `title` text NOT NULL,- `content` text,- `type` text DEFAULT 'info' NOT NULL,- `is_read` integer DEFAULT false,- `resource_id` text,- `resource_type` text,- `created_at` integer DEFAULT '"2025-05-05T17:08:25.144Z"' NOT NULL,- FOREIGN KEY (`user_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-PRAGMA foreign_keys=OFF;--> statement-breakpoint-CREATE TABLE `__new_activity` (- `id` text PRIMARY KEY NOT NULL,- `task_id` text NOT NULL,- `type` text NOT NULL,- `created_at` integer DEFAULT '"2025-05-05T17:08:25.144Z"' NOT NULL,- `user_email` text NOT NULL,- `content` text,- FOREIGN KEY (`task_id`) REFERENCES `task`(`id`) ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY (`user_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_activity`("id", "task_id", "type", "created_at", "user_email", "content") SELECT "id", "task_id", "type", "created_at", "user_email", "content" FROM `activity`;--> statement-breakpoint-DROP TABLE `activity`;--> statement-breakpoint-ALTER TABLE `__new_activity` RENAME TO `activity`;--> statement-breakpoint-PRAGMA foreign_keys=ON;--> statement-breakpoint-CREATE TABLE `__new_label` (- `id` text PRIMARY KEY NOT NULL,- `name` text NOT NULL,- `color` text NOT NULL,- `created_at` integer DEFAULT '"2025-05-05T17:08:25.144Z"' NOT NULL,- `task_id` text NOT NULL,- FOREIGN KEY (`task_id`) REFERENCES `task`(`id`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_label`("id", "name", "color", "created_at", "task_id") SELECT "id", "name", "color", "created_at", "task_id" FROM `label`;--> statement-breakpoint-DROP TABLE `label`;--> statement-breakpoint-ALTER TABLE `__new_label` RENAME TO `label`;--> statement-breakpoint-CREATE TABLE `__new_project` (- `id` text PRIMARY KEY NOT NULL,- `workspace_id` text NOT NULL,- `slug` text NOT NULL,- `icon` text DEFAULT 'Layout',- `name` text NOT NULL,- `description` text,- `created_at` integer DEFAULT '"2025-05-05T17:08:25.144Z"' NOT NULL,- FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_project`("id", "workspace_id", "slug", "icon", "name", "description", "created_at") SELECT "id", "workspace_id", "slug", "icon", "name", "description", "created_at" FROM `project`;--> statement-breakpoint-DROP TABLE `project`;--> statement-breakpoint-ALTER TABLE `__new_project` RENAME TO `project`;--> statement-breakpoint-CREATE TABLE `__new_task` (- `id` text PRIMARY KEY NOT NULL,- `project_id` text NOT NULL,- `position` integer DEFAULT 0,- `number` integer DEFAULT 1,- `assignee_email` text,- `title` text NOT NULL,- `description` text,- `status` text DEFAULT 'to-do' NOT NULL,- `priority` text DEFAULT 'low',- `due_date` integer,- `created_at` integer DEFAULT '"2025-05-05T17:08:25.144Z"' NOT NULL,- FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY (`assignee_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_task`("id", "project_id", "position", "number", "assignee_email", "title", "description", "status", "priority", "due_date", "created_at") SELECT "id", "project_id", "position", "number", "assignee_email", "title", "description", "status", "priority", "due_date", "created_at" FROM `task`;--> statement-breakpoint-DROP TABLE `task`;--> statement-breakpoint-ALTER TABLE `__new_task` RENAME TO `task`;--> statement-breakpoint-CREATE TABLE `__new_time_entry` (- `id` text PRIMARY KEY NOT NULL,- `task_id` text NOT NULL,- `user_email` text,- `description` text,- `start_time` integer NOT NULL,- `end_time` integer,- `duration` integer DEFAULT 0,- `created_at` integer DEFAULT '"2025-05-05T17:08:25.144Z"' NOT NULL,- FOREIGN KEY (`task_id`) REFERENCES `task`(`id`) ON UPDATE cascade ON DELETE cascade,- FOREIGN KEY (`user_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_time_entry`("id", "task_id", "user_email", "description", "start_time", "end_time", "duration", "created_at") SELECT "id", "task_id", "user_email", "description", "start_time", "end_time", "duration", "created_at" FROM `time_entry`;--> statement-breakpoint-DROP TABLE `time_entry`;--> statement-breakpoint-ALTER TABLE `__new_time_entry` RENAME TO `time_entry`;--> statement-breakpoint-CREATE TABLE `__new_user` (- `id` text PRIMARY KEY NOT NULL,- `name` text NOT NULL,- `password` text NOT NULL,- `email` text NOT NULL,- `created_at` integer DEFAULT '"2025-05-05T17:08:25.143Z"' NOT NULL-);---> statement-breakpoint-INSERT INTO `__new_user`("id", "name", "password", "email", "created_at") SELECT "id", "name", "password", "email", "created_at" FROM `user`;--> statement-breakpoint-DROP TABLE `user`;--> statement-breakpoint-ALTER TABLE `__new_user` RENAME TO `user`;--> statement-breakpoint-CREATE UNIQUE INDEX `user_email_unique` ON `user` (`email`);--> statement-breakpoint-CREATE TABLE `__new_workspace` (- `id` text PRIMARY KEY NOT NULL,- `name` text NOT NULL,- `description` text,- `owner_email` text NOT NULL,- `created_at` integer DEFAULT '"2025-05-05T17:08:25.144Z"' NOT NULL,- FOREIGN KEY (`owner_email`) REFERENCES `user`(`email`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_workspace`("id", "name", "description", "owner_email", "created_at") SELECT "id", "name", "description", "owner_email", "created_at" FROM `workspace`;--> statement-breakpoint-DROP TABLE `workspace`;--> statement-breakpoint-ALTER TABLE `__new_workspace` RENAME TO `workspace`;--> statement-breakpoint-CREATE TABLE `__new_workspace_member` (- `id` text PRIMARY KEY NOT NULL,- `workspace_id` text NOT NULL,- `user_email` text,- `role` text DEFAULT 'member' NOT NULL,- `joined_at` integer DEFAULT '"2025-05-05T17:08:25.144Z"' NOT NULL,- `status` text DEFAULT 'pending' NOT NULL,- FOREIGN KEY (`workspace_id`) REFERENCES `workspace`(`id`) ON UPDATE cascade ON DELETE cascade-);---> statement-breakpoint-INSERT INTO `__new_workspace_member`("id", "workspace_id", "user_email", "role", "joined_at", "status") SELECT "id", "workspace_id", "user_email", "role", "joined_at", "status" FROM `workspace_member`;--> statement-breakpoint-DROP TABLE `workspace_member`;--> statement-breakpoint-ALTER TABLE `__new_workspace_member` RENAME TO `workspace_member`;\ No newline at end of filediff --git a/apps/api/drizzle/meta/0000_snapshot.json b/apps/api/drizzle/meta/0000_snapshot.jsonindex d3b779b7d..5ccd8692b 100644--- a/apps/api/drizzle/meta/0000_snapshot.json+++ b/apps/api/drizzle/meta/0000_snapshot.json@@ -1,54 +1,49 @@{- "version": "6",- "dialect": "sqlite",- "id": "85665cab-8b3a-4f4c-97a2-35c752fc7ad2",+ "id": "b34dfa17-4282-4f42-a5ba-71db1f01adc8","prevId": "00000000-0000-0000-0000-000000000000",+ "version": "7",+ "dialect": "postgresql","tables": {- "activity": {+ "public.activity": {"name": "activity",+ "schema": "","columns": {"id": {"name": "id","type": "text","primaryKey": true,- "notNull": true,- "autoincrement": false+ "notNull": true},"task_id": {"name": "task_id","type": "text","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": true},"type": {"name": "type","type": "text","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": true},"created_at": {"name": "created_at",- "type": "integer",+ "type": "timestamp","primaryKey": false,"notNull": true,- "autoincrement": false,- "default": "'\"2025-04-17T20:55:01.755Z\"'"+ "default": "now()"},"user_email": {"name": "user_email","type": "text","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": true},"content": {"name": "content","type": "text","primaryKey": false,- "notNull": false,- "autoincrement": false+ "notNull": false}},"indexes": {},@@ -74,61 +69,198 @@},"compositePrimaryKeys": {},"uniqueConstraints": {},- "checkConstraints": {}+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false},- "project": {- "name": "project",+ "public.label": {+ "name": "label",+ "schema": "","columns": {"id": {"name": "id","type": "text","primaryKey": true,+ "notNull": true+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "color": {+ "name": "color",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ }+ },+ "indexes": {},+ "foreignKeys": {+ "label_task_id_task_id_fk": {+ "name": "label_task_id_task_id_fk",+ "tableFrom": "label",+ "tableTo": "task",+ "columnsFrom": ["task_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.notification": {+ "name": "notification",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true+ },+ "user_email": {+ "name": "user_email",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "title": {+ "name": "title",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "type": {+ "name": "type",+ "type": "text",+ "primaryKey": false,"notNull": true,- "autoincrement": false+ "default": "'info'"+ },+ "is_read": {+ "name": "is_read",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": false+ },+ "resource_id": {+ "name": "resource_id",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "resource_type": {+ "name": "resource_type",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "default": "now()"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "notification_user_email_user_email_fk": {+ "name": "notification_user_email_user_email_fk",+ "tableFrom": "notification",+ "tableTo": "user",+ "columnsFrom": ["user_email"],+ "columnsTo": ["email"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.project": {+ "name": "project",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true},"workspace_id": {"name": "workspace_id","type": "text","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": true},"slug": {"name": "slug","type": "text","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": true},"icon": {"name": "icon","type": "text","primaryKey": false,"notNull": false,- "autoincrement": false,"default": "'Layout'"},"name": {"name": "name","type": "text","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": true},"description": {"name": "description","type": "text","primaryKey": false,- "notNull": false,- "autoincrement": false+ "notNull": false},"created_at": {"name": "created_at",- "type": "integer",+ "type": "timestamp","primaryKey": false,"notNull": true,- "autoincrement": false,- "default": "'\"2025-04-17T20:55:01.755Z\"'"+ "default": "now()"+ },+ "is_public": {+ "name": "is_public",+ "type": "boolean",+ "primaryKey": false,+ "notNull": false,+ "default": false}},"indexes": {},@@ -145,31 +277,31 @@},"compositePrimaryKeys": {},"uniqueConstraints": {},- "checkConstraints": {}+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false},- "session": {+ "public.session": {"name": "session",+ "schema": "","columns": {"id": {"name": "id","type": "text","primaryKey": true,- "notNull": true,- "autoincrement": false+ "notNull": true},"user_id": {"name": "user_id","type": "text","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": true},"expires_at": {"name": "expires_at",- "type": "integer",+ "type": "timestamp","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": true}},"indexes": {},@@ -186,31 +318,31 @@},"compositePrimaryKeys": {},"uniqueConstraints": {},- "checkConstraints": {}+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false},- "task": {+ "public.task": {"name": "task",+ "schema": "","columns": {"id": {"name": "id","type": "text","primaryKey": true,- "notNull": true,- "autoincrement": false+ "notNull": true},"project_id": {"name": "project_id","type": "text","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": true},"position": {"name": "position","type": "integer","primaryKey": false,"notNull": false,- "autoincrement": false,"default": 0},"number": {@@ -218,36 +350,31 @@"type": "integer","primaryKey": false,"notNull": false,- "autoincrement": false,"default": 1},"assignee_email": {"name": "assignee_email","type": "text","primaryKey": false,- "notNull": false,- "autoincrement": false+ "notNull": false},"title": {"name": "title","type": "text","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": true},"description": {"name": "description","type": "text","primaryKey": false,- "notNull": false,- "autoincrement": false+ "notNull": false},"status": {"name": "status","type": "text","primaryKey": false,"notNull": true,- "autoincrement": false,"default": "'to-do'"},"priority": {@@ -255,23 +382,20 @@"type": "text","primaryKey": false,"notNull": false,- "autoincrement": false,"default": "'low'"},"due_date": {"name": "due_date",- "type": "integer",+ "type": "timestamp","primaryKey": false,- "notNull": false,- "autoincrement": false+ "notNull": false},"created_at": {"name": "created_at",- "type": "integer",+ "type": "timestamp","primaryKey": false,"notNull": true,- "autoincrement": false,- "default": "'\"2025-04-17T20:55:01.755Z\"'"+ "default": "now()"}},"indexes": {},@@ -297,98 +421,176 @@},"compositePrimaryKeys": {},"uniqueConstraints": {},- "checkConstraints": {}+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false},- "user": {- "name": "user",+ "public.time_entry": {+ "name": "time_entry",+ "schema": "","columns": {"id": {"name": "id","type": "text","primaryKey": true,+ "notNull": true+ },+ "task_id": {+ "name": "task_id",+ "type": "text",+ "primaryKey": false,+ "notNull": true+ },+ "user_email": {+ "name": "user_email",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "description": {+ "name": "description",+ "type": "text",+ "primaryKey": false,+ "notNull": false+ },+ "start_time": {+ "name": "start_time",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true+ },+ "end_time": {+ "name": "end_time",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false+ },+ "duration": {+ "name": "duration",+ "type": "integer",+ "primaryKey": false,+ "notNull": false,+ "default": 0+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,"notNull": true,- "autoincrement": false+ "default": "now()"+ }+ },+ "indexes": {},+ "foreignKeys": {+ "time_entry_task_id_task_id_fk": {+ "name": "time_entry_task_id_task_id_fk",+ "tableFrom": "time_entry",+ "tableTo": "task",+ "columnsFrom": ["task_id"],+ "columnsTo": ["id"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ },+ "time_entry_user_email_user_email_fk": {+ "name": "time_entry_user_email_user_email_fk",+ "tableFrom": "time_entry",+ "tableTo": "user",+ "columnsFrom": ["user_email"],+ "columnsTo": ["email"],+ "onDelete": "cascade",+ "onUpdate": "cascade"+ }+ },+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false+ },+ "public.user": {+ "name": "user",+ "schema": "",+ "columns": {+ "id": {+ "name": "id",+ "type": "text",+ "primaryKey": true,+ "notNull": true},"name": {"name": "name","type": "text","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": true},"password": {"name": "password","type": "text","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": true},"email": {"name": "email","type": "text","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": true},"created_at": {"name": "created_at",- "type": "integer",+ "type": "timestamp","primaryKey": false,"notNull": true,- "autoincrement": false,- "default": "'\"2025-04-17T20:55:01.754Z\"'"+ "default": "now()"}},- "indexes": {+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {"user_email_unique": {"name": "user_email_unique",- "columns": ["email"],- "isUnique": true+ "nullsNotDistinct": false,+ "columns": ["email"]}},- "foreignKeys": {},- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false},- "workspace": {+ "public.workspace": {"name": "workspace",+ "schema": "","columns": {"id": {"name": "id","type": "text","primaryKey": true,- "notNull": true,- "autoincrement": false+ "notNull": true},"name": {"name": "name","type": "text","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": true},"description": {"name": "description","type": "text","primaryKey": false,- "notNull": false,- "autoincrement": false+ "notNull": false},"owner_email": {"name": "owner_email","type": "text","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": true},"created_at": {"name": "created_at",- "type": "integer",+ "type": "timestamp","primaryKey": false,"notNull": true,- "autoincrement": false,- "default": "'\"2025-04-17T20:55:01.755Z\"'"+ "default": "now()"}},"indexes": {},@@ -405,54 +607,51 @@},"compositePrimaryKeys": {},"uniqueConstraints": {},- "checkConstraints": {}+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false},- "workspace_member": {+ "public.workspace_member": {"name": "workspace_member",+ "schema": "","columns": {"id": {"name": "id","type": "text","primaryKey": true,- "notNull": true,- "autoincrement": false+ "notNull": true},"workspace_id": {"name": "workspace_id","type": "text","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": true},"user_email": {"name": "user_email","type": "text","primaryKey": false,- "notNull": true,- "autoincrement": false+ "notNull": false},"role": {"name": "role","type": "text","primaryKey": false,"notNull": true,- "autoincrement": false,"default": "'member'"},"joined_at": {"name": "joined_at",- "type": "integer",+ "type": "timestamp","primaryKey": false,"notNull": true,- "autoincrement": false,- "default": "'\"2025-04-17T20:55:01.755Z\"'"+ "default": "now()"},"status": {"name": "status","type": "text","primaryKey": false,"notNull": true,- "autoincrement": false,"default": "'pending'"}},@@ -479,17 +678,20 @@},"compositePrimaryKeys": {},"uniqueConstraints": {},- "checkConstraints": {}+ "policies": {},+ "checkConstraints": {},+ "isRLSEnabled": false}},- "views": {},"enums": {},+ "schemas": {},+ "sequences": {},+ "roles": {},+ "policies": {},+ "views": {},"_meta": {+ "columns": {},"schemas": {},- "tables": {},- "columns": {}- },- "internal": {- "indexes": {}+ "tables": {}}}diff --git a/apps/api/drizzle/meta/0001_snapshot.json b/apps/api/drizzle/meta/0001_snapshot.jsondeleted file mode 100644index 5b2f851cb..000000000--- a/apps/api/drizzle/meta/0001_snapshot.json+++ /dev/null@@ -1,495 +0,0 @@-{- "version": "6",- "dialect": "sqlite",- "id": "8c533750-62a3-432a-9006-5a6bac28c095",- "prevId": "85665cab-8b3a-4f4c-97a2-35c752fc7ad2",- "tables": {- "activity": {- "name": "activity",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "task_id": {- "name": "task_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "type": {- "name": "type",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-20T15:06:18.576Z\"'"- },- "user_email": {- "name": "user_email",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "content": {- "name": "content",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- }- },- "indexes": {},- "foreignKeys": {- "activity_task_id_task_id_fk": {- "name": "activity_task_id_task_id_fk",- "tableFrom": "activity",- "tableTo": "task",- "columnsFrom": ["task_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- },- "activity_user_email_user_email_fk": {- "name": "activity_user_email_user_email_fk",- "tableFrom": "activity",- "tableTo": "user",- "columnsFrom": ["user_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "project": {- "name": "project",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "workspace_id": {- "name": "workspace_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "slug": {- "name": "slug",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "icon": {- "name": "icon",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": "'Layout'"- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-20T15:06:18.576Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "project_workspace_id_workspace_id_fk": {- "name": "project_workspace_id_workspace_id_fk",- "tableFrom": "project",- "tableTo": "workspace",- "columnsFrom": ["workspace_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "session": {- "name": "session",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "user_id": {- "name": "user_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "expires_at": {- "name": "expires_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false- }- },- "indexes": {},- "foreignKeys": {- "session_user_id_user_id_fk": {- "name": "session_user_id_user_id_fk",- "tableFrom": "session",- "tableTo": "user",- "columnsFrom": ["user_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "task": {- "name": "task",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "project_id": {- "name": "project_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "position": {- "name": "position",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": 0- },- "number": {- "name": "number",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": 1- },- "assignee_email": {- "name": "assignee_email",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "title": {- "name": "title",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "status": {- "name": "status",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'to-do'"- },- "priority": {- "name": "priority",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": "'low'"- },- "due_date": {- "name": "due_date",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-20T15:06:18.576Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "task_project_id_project_id_fk": {- "name": "task_project_id_project_id_fk",- "tableFrom": "task",- "tableTo": "project",- "columnsFrom": ["project_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- },- "task_assignee_email_user_email_fk": {- "name": "task_assignee_email_user_email_fk",- "tableFrom": "task",- "tableTo": "user",- "columnsFrom": ["assignee_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "user": {- "name": "user",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "password": {- "name": "password",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "email": {- "name": "email",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-20T15:06:18.575Z\"'"- }- },- "indexes": {- "user_email_unique": {- "name": "user_email_unique",- "columns": ["email"],- "isUnique": true- }- },- "foreignKeys": {},- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "workspace": {- "name": "workspace",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "owner_email": {- "name": "owner_email",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-20T15:06:18.575Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "workspace_owner_email_user_email_fk": {- "name": "workspace_owner_email_user_email_fk",- "tableFrom": "workspace",- "tableTo": "user",- "columnsFrom": ["owner_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "workspace_member": {- "name": "workspace_member",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "workspace_id": {- "name": "workspace_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "user_email": {- "name": "user_email",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "role": {- "name": "role",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'member'"- },- "joined_at": {- "name": "joined_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-20T15:06:18.575Z\"'"- },- "status": {- "name": "status",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'pending'"- }- },- "indexes": {},- "foreignKeys": {- "workspace_member_workspace_id_workspace_id_fk": {- "name": "workspace_member_workspace_id_workspace_id_fk",- "tableFrom": "workspace_member",- "tableTo": "workspace",- "columnsFrom": ["workspace_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- },- "workspace_member_user_email_user_email_fk": {- "name": "workspace_member_user_email_user_email_fk",- "tableFrom": "workspace_member",- "tableTo": "user",- "columnsFrom": ["user_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- }- },- "views": {},- "enums": {},- "_meta": {- "schemas": {},- "tables": {},- "columns": {}- },- "internal": {- "indexes": {}- }-}diff --git a/apps/api/drizzle/meta/0002_snapshot.json b/apps/api/drizzle/meta/0002_snapshot.jsondeleted file mode 100644index 20e58676f..000000000--- a/apps/api/drizzle/meta/0002_snapshot.json+++ /dev/null@@ -1,486 +0,0 @@-{- "version": "6",- "dialect": "sqlite",- "id": "0b01528e-2d71-498c-9ab6-1c16128a7c9b",- "prevId": "8c533750-62a3-432a-9006-5a6bac28c095",- "tables": {- "activity": {- "name": "activity",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "task_id": {- "name": "task_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "type": {- "name": "type",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-20T15:14:33.402Z\"'"- },- "user_email": {- "name": "user_email",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "content": {- "name": "content",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- }- },- "indexes": {},- "foreignKeys": {- "activity_task_id_task_id_fk": {- "name": "activity_task_id_task_id_fk",- "tableFrom": "activity",- "tableTo": "task",- "columnsFrom": ["task_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- },- "activity_user_email_user_email_fk": {- "name": "activity_user_email_user_email_fk",- "tableFrom": "activity",- "tableTo": "user",- "columnsFrom": ["user_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "project": {- "name": "project",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "workspace_id": {- "name": "workspace_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "slug": {- "name": "slug",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "icon": {- "name": "icon",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": "'Layout'"- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-20T15:14:33.402Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "project_workspace_id_workspace_id_fk": {- "name": "project_workspace_id_workspace_id_fk",- "tableFrom": "project",- "tableTo": "workspace",- "columnsFrom": ["workspace_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "session": {- "name": "session",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "user_id": {- "name": "user_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "expires_at": {- "name": "expires_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false- }- },- "indexes": {},- "foreignKeys": {- "session_user_id_user_id_fk": {- "name": "session_user_id_user_id_fk",- "tableFrom": "session",- "tableTo": "user",- "columnsFrom": ["user_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "task": {- "name": "task",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "project_id": {- "name": "project_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "position": {- "name": "position",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": 0- },- "number": {- "name": "number",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": 1- },- "assignee_email": {- "name": "assignee_email",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "title": {- "name": "title",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "status": {- "name": "status",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'to-do'"- },- "priority": {- "name": "priority",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": "'low'"- },- "due_date": {- "name": "due_date",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-20T15:14:33.402Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "task_project_id_project_id_fk": {- "name": "task_project_id_project_id_fk",- "tableFrom": "task",- "tableTo": "project",- "columnsFrom": ["project_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- },- "task_assignee_email_user_email_fk": {- "name": "task_assignee_email_user_email_fk",- "tableFrom": "task",- "tableTo": "user",- "columnsFrom": ["assignee_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "user": {- "name": "user",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "password": {- "name": "password",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "email": {- "name": "email",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-20T15:14:33.401Z\"'"- }- },- "indexes": {- "user_email_unique": {- "name": "user_email_unique",- "columns": ["email"],- "isUnique": true- }- },- "foreignKeys": {},- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "workspace": {- "name": "workspace",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "owner_email": {- "name": "owner_email",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-20T15:14:33.401Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "workspace_owner_email_user_email_fk": {- "name": "workspace_owner_email_user_email_fk",- "tableFrom": "workspace",- "tableTo": "user",- "columnsFrom": ["owner_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "workspace_member": {- "name": "workspace_member",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "workspace_id": {- "name": "workspace_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "user_email": {- "name": "user_email",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "role": {- "name": "role",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'member'"- },- "joined_at": {- "name": "joined_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-20T15:14:33.402Z\"'"- },- "status": {- "name": "status",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'pending'"- }- },- "indexes": {},- "foreignKeys": {- "workspace_member_workspace_id_workspace_id_fk": {- "name": "workspace_member_workspace_id_workspace_id_fk",- "tableFrom": "workspace_member",- "tableTo": "workspace",- "columnsFrom": ["workspace_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- }- },- "views": {},- "enums": {},- "_meta": {- "schemas": {},- "tables": {},- "columns": {}- },- "internal": {- "indexes": {}- }-}diff --git a/apps/api/drizzle/meta/0003_snapshot.json b/apps/api/drizzle/meta/0003_snapshot.jsondeleted file mode 100644index e67cfbd5c..000000000--- a/apps/api/drizzle/meta/0003_snapshot.json+++ /dev/null@@ -1,573 +0,0 @@-{- "version": "6",- "dialect": "sqlite",- "id": "9fc96e44-b13b-4ba1-b184-a93eb6fa8c2d",- "prevId": "0b01528e-2d71-498c-9ab6-1c16128a7c9b",- "tables": {- "activity": {- "name": "activity",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "task_id": {- "name": "task_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "type": {- "name": "type",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-21T21:14:02.512Z\"'"- },- "user_email": {- "name": "user_email",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "content": {- "name": "content",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- }- },- "indexes": {},- "foreignKeys": {- "activity_task_id_task_id_fk": {- "name": "activity_task_id_task_id_fk",- "tableFrom": "activity",- "tableTo": "task",- "columnsFrom": ["task_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- },- "activity_user_email_user_email_fk": {- "name": "activity_user_email_user_email_fk",- "tableFrom": "activity",- "tableTo": "user",- "columnsFrom": ["user_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "project": {- "name": "project",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "workspace_id": {- "name": "workspace_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "slug": {- "name": "slug",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "icon": {- "name": "icon",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": "'Layout'"- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-21T21:14:02.511Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "project_workspace_id_workspace_id_fk": {- "name": "project_workspace_id_workspace_id_fk",- "tableFrom": "project",- "tableTo": "workspace",- "columnsFrom": ["workspace_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "session": {- "name": "session",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "user_id": {- "name": "user_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "expires_at": {- "name": "expires_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false- }- },- "indexes": {},- "foreignKeys": {- "session_user_id_user_id_fk": {- "name": "session_user_id_user_id_fk",- "tableFrom": "session",- "tableTo": "user",- "columnsFrom": ["user_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "task": {- "name": "task",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "project_id": {- "name": "project_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "position": {- "name": "position",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": 0- },- "number": {- "name": "number",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": 1- },- "assignee_email": {- "name": "assignee_email",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "title": {- "name": "title",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "status": {- "name": "status",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'to-do'"- },- "priority": {- "name": "priority",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": "'low'"- },- "due_date": {- "name": "due_date",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-21T21:14:02.512Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "task_project_id_project_id_fk": {- "name": "task_project_id_project_id_fk",- "tableFrom": "task",- "tableTo": "project",- "columnsFrom": ["project_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- },- "task_assignee_email_user_email_fk": {- "name": "task_assignee_email_user_email_fk",- "tableFrom": "task",- "tableTo": "user",- "columnsFrom": ["assignee_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "time_entry": {- "name": "time_entry",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "task_id": {- "name": "task_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "user_email": {- "name": "user_email",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "start_time": {- "name": "start_time",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "end_time": {- "name": "end_time",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "duration": {- "name": "duration",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": 0- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-21T21:14:02.512Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "time_entry_task_id_task_id_fk": {- "name": "time_entry_task_id_task_id_fk",- "tableFrom": "time_entry",- "tableTo": "task",- "columnsFrom": ["task_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- },- "time_entry_user_email_user_email_fk": {- "name": "time_entry_user_email_user_email_fk",- "tableFrom": "time_entry",- "tableTo": "user",- "columnsFrom": ["user_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "user": {- "name": "user",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "password": {- "name": "password",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "email": {- "name": "email",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-21T21:14:02.511Z\"'"- }- },- "indexes": {- "user_email_unique": {- "name": "user_email_unique",- "columns": ["email"],- "isUnique": true- }- },- "foreignKeys": {},- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "workspace": {- "name": "workspace",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "owner_email": {- "name": "owner_email",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-21T21:14:02.511Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "workspace_owner_email_user_email_fk": {- "name": "workspace_owner_email_user_email_fk",- "tableFrom": "workspace",- "tableTo": "user",- "columnsFrom": ["owner_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "workspace_member": {- "name": "workspace_member",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "workspace_id": {- "name": "workspace_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "user_email": {- "name": "user_email",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "role": {- "name": "role",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'member'"- },- "joined_at": {- "name": "joined_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-04-21T21:14:02.511Z\"'"- },- "status": {- "name": "status",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'pending'"- }- },- "indexes": {},- "foreignKeys": {- "workspace_member_workspace_id_workspace_id_fk": {- "name": "workspace_member_workspace_id_workspace_id_fk",- "tableFrom": "workspace_member",- "tableTo": "workspace",- "columnsFrom": ["workspace_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- }- },- "views": {},- "enums": {},- "_meta": {- "schemas": {},- "tables": {},- "columns": {}- },- "internal": {- "indexes": {}- }-}diff --git a/apps/api/drizzle/meta/0004_snapshot.json b/apps/api/drizzle/meta/0004_snapshot.jsondeleted file mode 100644index 75b42a591..000000000--- a/apps/api/drizzle/meta/0004_snapshot.json+++ /dev/null@@ -1,629 +0,0 @@-{- "version": "6",- "dialect": "sqlite",- "id": "7e69d763-6d6f-49f5-893e-a168deac584f",- "prevId": "9fc96e44-b13b-4ba1-b184-a93eb6fa8c2d",- "tables": {- "activity": {- "name": "activity",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "task_id": {- "name": "task_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "type": {- "name": "type",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-01T02:35:11.789Z\"'"- },- "user_email": {- "name": "user_email",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "content": {- "name": "content",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- }- },- "indexes": {},- "foreignKeys": {- "activity_task_id_task_id_fk": {- "name": "activity_task_id_task_id_fk",- "tableFrom": "activity",- "tableTo": "task",- "columnsFrom": ["task_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- },- "activity_user_email_user_email_fk": {- "name": "activity_user_email_user_email_fk",- "tableFrom": "activity",- "tableTo": "user",- "columnsFrom": ["user_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "label": {- "name": "label",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "color": {- "name": "color",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-01T02:35:11.789Z\"'"- },- "task_id": {- "name": "task_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- }- },- "indexes": {},- "foreignKeys": {- "label_task_id_task_id_fk": {- "name": "label_task_id_task_id_fk",- "tableFrom": "label",- "tableTo": "task",- "columnsFrom": ["task_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "project": {- "name": "project",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "workspace_id": {- "name": "workspace_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "slug": {- "name": "slug",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "icon": {- "name": "icon",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": "'Layout'"- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-01T02:35:11.789Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "project_workspace_id_workspace_id_fk": {- "name": "project_workspace_id_workspace_id_fk",- "tableFrom": "project",- "tableTo": "workspace",- "columnsFrom": ["workspace_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "session": {- "name": "session",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "user_id": {- "name": "user_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "expires_at": {- "name": "expires_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false- }- },- "indexes": {},- "foreignKeys": {- "session_user_id_user_id_fk": {- "name": "session_user_id_user_id_fk",- "tableFrom": "session",- "tableTo": "user",- "columnsFrom": ["user_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "task": {- "name": "task",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "project_id": {- "name": "project_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "position": {- "name": "position",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": 0- },- "number": {- "name": "number",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": 1- },- "assignee_email": {- "name": "assignee_email",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "title": {- "name": "title",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "status": {- "name": "status",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'to-do'"- },- "priority": {- "name": "priority",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": "'low'"- },- "due_date": {- "name": "due_date",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-01T02:35:11.789Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "task_project_id_project_id_fk": {- "name": "task_project_id_project_id_fk",- "tableFrom": "task",- "tableTo": "project",- "columnsFrom": ["project_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- },- "task_assignee_email_user_email_fk": {- "name": "task_assignee_email_user_email_fk",- "tableFrom": "task",- "tableTo": "user",- "columnsFrom": ["assignee_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "time_entry": {- "name": "time_entry",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "task_id": {- "name": "task_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "user_email": {- "name": "user_email",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "start_time": {- "name": "start_time",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "end_time": {- "name": "end_time",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "duration": {- "name": "duration",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": 0- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-01T02:35:11.789Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "time_entry_task_id_task_id_fk": {- "name": "time_entry_task_id_task_id_fk",- "tableFrom": "time_entry",- "tableTo": "task",- "columnsFrom": ["task_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- },- "time_entry_user_email_user_email_fk": {- "name": "time_entry_user_email_user_email_fk",- "tableFrom": "time_entry",- "tableTo": "user",- "columnsFrom": ["user_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "user": {- "name": "user",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "password": {- "name": "password",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "email": {- "name": "email",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-01T02:35:11.788Z\"'"- }- },- "indexes": {- "user_email_unique": {- "name": "user_email_unique",- "columns": ["email"],- "isUnique": true- }- },- "foreignKeys": {},- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "workspace": {- "name": "workspace",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "owner_email": {- "name": "owner_email",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-01T02:35:11.789Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "workspace_owner_email_user_email_fk": {- "name": "workspace_owner_email_user_email_fk",- "tableFrom": "workspace",- "tableTo": "user",- "columnsFrom": ["owner_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "workspace_member": {- "name": "workspace_member",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "workspace_id": {- "name": "workspace_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "user_email": {- "name": "user_email",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "role": {- "name": "role",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'member'"- },- "joined_at": {- "name": "joined_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-01T02:35:11.789Z\"'"- },- "status": {- "name": "status",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'pending'"- }- },- "indexes": {},- "foreignKeys": {- "workspace_member_workspace_id_workspace_id_fk": {- "name": "workspace_member_workspace_id_workspace_id_fk",- "tableFrom": "workspace_member",- "tableTo": "workspace",- "columnsFrom": ["workspace_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- }- },- "views": {},- "enums": {},- "_meta": {- "schemas": {},- "tables": {},- "columns": {}- },- "internal": {- "indexes": {}- }-}diff --git a/apps/api/drizzle/meta/0005_snapshot.json b/apps/api/drizzle/meta/0005_snapshot.jsondeleted file mode 100644index 15fa51f70..000000000--- a/apps/api/drizzle/meta/0005_snapshot.json+++ /dev/null@@ -1,715 +0,0 @@-{- "version": "6",- "dialect": "sqlite",- "id": "1eebb9a6-9ef0-4b07-aaf1-11740ab0b6cc",- "prevId": "7e69d763-6d6f-49f5-893e-a168deac584f",- "tables": {- "activity": {- "name": "activity",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "task_id": {- "name": "task_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "type": {- "name": "type",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-05T17:08:25.144Z\"'"- },- "user_email": {- "name": "user_email",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "content": {- "name": "content",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- }- },- "indexes": {},- "foreignKeys": {- "activity_task_id_task_id_fk": {- "name": "activity_task_id_task_id_fk",- "tableFrom": "activity",- "tableTo": "task",- "columnsFrom": ["task_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- },- "activity_user_email_user_email_fk": {- "name": "activity_user_email_user_email_fk",- "tableFrom": "activity",- "tableTo": "user",- "columnsFrom": ["user_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "label": {- "name": "label",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "color": {- "name": "color",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-05T17:08:25.144Z\"'"- },- "task_id": {- "name": "task_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- }- },- "indexes": {},- "foreignKeys": {- "label_task_id_task_id_fk": {- "name": "label_task_id_task_id_fk",- "tableFrom": "label",- "tableTo": "task",- "columnsFrom": ["task_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "notification": {- "name": "notification",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "user_email": {- "name": "user_email",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "title": {- "name": "title",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "content": {- "name": "content",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "type": {- "name": "type",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'info'"- },- "is_read": {- "name": "is_read",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": false- },- "resource_id": {- "name": "resource_id",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "resource_type": {- "name": "resource_type",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-05T17:08:25.144Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "notification_user_email_user_email_fk": {- "name": "notification_user_email_user_email_fk",- "tableFrom": "notification",- "tableTo": "user",- "columnsFrom": ["user_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "project": {- "name": "project",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "workspace_id": {- "name": "workspace_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "slug": {- "name": "slug",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "icon": {- "name": "icon",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": "'Layout'"- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-05T17:08:25.144Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "project_workspace_id_workspace_id_fk": {- "name": "project_workspace_id_workspace_id_fk",- "tableFrom": "project",- "tableTo": "workspace",- "columnsFrom": ["workspace_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "session": {- "name": "session",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "user_id": {- "name": "user_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "expires_at": {- "name": "expires_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false- }- },- "indexes": {},- "foreignKeys": {- "session_user_id_user_id_fk": {- "name": "session_user_id_user_id_fk",- "tableFrom": "session",- "tableTo": "user",- "columnsFrom": ["user_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "task": {- "name": "task",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "project_id": {- "name": "project_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "position": {- "name": "position",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": 0- },- "number": {- "name": "number",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": 1- },- "assignee_email": {- "name": "assignee_email",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "title": {- "name": "title",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "status": {- "name": "status",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'to-do'"- },- "priority": {- "name": "priority",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": "'low'"- },- "due_date": {- "name": "due_date",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-05T17:08:25.144Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "task_project_id_project_id_fk": {- "name": "task_project_id_project_id_fk",- "tableFrom": "task",- "tableTo": "project",- "columnsFrom": ["project_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- },- "task_assignee_email_user_email_fk": {- "name": "task_assignee_email_user_email_fk",- "tableFrom": "task",- "tableTo": "user",- "columnsFrom": ["assignee_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "time_entry": {- "name": "time_entry",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "task_id": {- "name": "task_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "user_email": {- "name": "user_email",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "start_time": {- "name": "start_time",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "end_time": {- "name": "end_time",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "duration": {- "name": "duration",- "type": "integer",- "primaryKey": false,- "notNull": false,- "autoincrement": false,- "default": 0- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-05T17:08:25.144Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "time_entry_task_id_task_id_fk": {- "name": "time_entry_task_id_task_id_fk",- "tableFrom": "time_entry",- "tableTo": "task",- "columnsFrom": ["task_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- },- "time_entry_user_email_user_email_fk": {- "name": "time_entry_user_email_user_email_fk",- "tableFrom": "time_entry",- "tableTo": "user",- "columnsFrom": ["user_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "user": {- "name": "user",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "password": {- "name": "password",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "email": {- "name": "email",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-05T17:08:25.143Z\"'"- }- },- "indexes": {- "user_email_unique": {- "name": "user_email_unique",- "columns": ["email"],- "isUnique": true- }- },- "foreignKeys": {},- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "workspace": {- "name": "workspace",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "name": {- "name": "name",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "description": {- "name": "description",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "owner_email": {- "name": "owner_email",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "created_at": {- "name": "created_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-05T17:08:25.144Z\"'"- }- },- "indexes": {},- "foreignKeys": {- "workspace_owner_email_user_email_fk": {- "name": "workspace_owner_email_user_email_fk",- "tableFrom": "workspace",- "tableTo": "user",- "columnsFrom": ["owner_email"],- "columnsTo": ["email"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- },- "workspace_member": {- "name": "workspace_member",- "columns": {- "id": {- "name": "id",- "type": "text",- "primaryKey": true,- "notNull": true,- "autoincrement": false- },- "workspace_id": {- "name": "workspace_id",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false- },- "user_email": {- "name": "user_email",- "type": "text",- "primaryKey": false,- "notNull": false,- "autoincrement": false- },- "role": {- "name": "role",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'member'"- },- "joined_at": {- "name": "joined_at",- "type": "integer",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'\"2025-05-05T17:08:25.144Z\"'"- },- "status": {- "name": "status",- "type": "text",- "primaryKey": false,- "notNull": true,- "autoincrement": false,- "default": "'pending'"- }- },- "indexes": {},- "foreignKeys": {- "workspace_member_workspace_id_workspace_id_fk": {- "name": "workspace_member_workspace_id_workspace_id_fk",- "tableFrom": "workspace_member",- "tableTo": "workspace",- "columnsFrom": ["workspace_id"],- "columnsTo": ["id"],- "onDelete": "cascade",- "onUpdate": "cascade"- }- },- "compositePrimaryKeys": {},- "uniqueConstraints": {},- "checkConstraints": {}- }- },- "views": {},- "enums": {},- "_meta": {- "schemas": {},- "tables": {},- "columns": {}- },- "internal": {- "indexes": {}- }-}diff --git a/apps/api/drizzle/meta/_journal.json b/apps/api/drizzle/meta/_journal.jsonindex a0bbb91f8..2019f5852 100644--- a/apps/api/drizzle/meta/_journal.json+++ b/apps/api/drizzle/meta/_journal.json@@ -1,47 +1,12 @@{"version": "7",- "dialect": "sqlite",+ "dialect": "postgresql","entries": [{"idx": 0,- "version": "6",- "when": 1744923301762,- "tag": "0000_deep_spot",- "breakpoints": true- },- {- "idx": 1,- "version": "6",- "when": 1745161578587,- "tag": "0001_blue_unicorn",- "breakpoints": true- },- {- "idx": 2,- "version": "6",- "when": 1745162073413,- "tag": "0002_many_lake",- "breakpoints": true- },- {- "idx": 3,- "version": "6",- "when": 1745270042523,- "tag": "0003_daffy_amazoness",- "breakpoints": true- },- {- "idx": 4,- "version": "6",- "when": 1746066911796,- "tag": "0004_small_dragon_lord",- "breakpoints": true- },- {- "idx": 5,- "version": "6",- "when": 1746464905156,- "tag": "0005_faulty_xorn",+ "version": "7",+ "when": 1749922967091,+ "tag": "0000_new_ted_forrester","breakpoints": true}]diff --git a/apps/api/package-lock.json b/apps/api/package-lock.jsonnew file mode 100644index 000000000..377e9a271--- /dev/null+++ b/apps/api/package-lock.json@@ -0,0 +1,835 @@+{+ "name": "@kaneo/api",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "@kaneo/api",+ "dependencies": {+ "@hono/node-server": "^1.14.4",+ "@hono/zod-validator": "^0.5.0",+ "@oslojs/crypto": "^1.0.1",+ "@oslojs/encoding": "^1.1.0",+ "@paralleldrive/cuid2": "^2.2.2",+ "bcrypt": "^6.0.0",+ "dotenv": "^16.5.0",+ "drizzle-kit": "^0.31.1",+ "drizzle-orm": "^0.43.0",+ "hono": "^4.7.11",+ "pg": "^8.16.0",+ "zod": "^3.25.56"+ },+ "devDependencies": {+ "@types/bcrypt": "^5.0.2",+ "@types/node": "^22.15.30",+ "@types/pg": "^8.15.4",+ "esbuild": ">=0.25.0",+ "tsx": "^4.19.4",+ "typescript": "^5.8.3"+ }+ },+ "../../node_modules/.pnpm/@[email protected][email protected]/node_modules/@hono/node-server": {+ "version": "1.14.4",+ "license": "MIT",+ "devDependencies": {+ "@hono/eslint-config": "^1.0.1",+ "@types/jest": "^29.5.3",+ "@types/node": "^20.10.0",+ "@types/supertest": "^2.0.12",+ "@whatwg-node/fetch": "^0.9.14",+ "eslint": "^9.10.0",+ "hono": "^4.4.10",+ "jest": "^29.6.1",+ "np": "^7.7.0",+ "prettier": "^3.2.4",+ "publint": "^0.1.16",+ "supertest": "^6.3.3",+ "ts-jest": "^29.1.1",+ "tsup": "^7.2.0",+ "typescript": "^5.3.2"+ },+ "engines": {+ "node": ">=18.14.1"+ },+ "peerDependencies": {+ "hono": "^4"+ }+ },+ "../../node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@hono/zod-validator": {+ "version": "0.5.0",+ "license": "MIT",+ "devDependencies": {+ "@arethetypeswrong/cli": "^0.17.4",+ "publint": "^0.3.9",+ "tsup": "^8.4.0",+ "typescript": "^5.8.2",+ "vitest": "^3.0.8",+ "zod": "^3.22.4"+ },+ "peerDependencies": {+ "hono": ">=3.9.0",+ "zod": "^3.19.1"+ }+ },+ "../../node_modules/.pnpm/@[email protected]/node_modules/@oslojs/crypto": {+ "version": "1.0.1",+ "license": "MIT",+ "dependencies": {+ "@oslojs/asn1": "1.0.0",+ "@oslojs/binary": "1.0.0"+ },+ "devDependencies": {+ "@oslojs/encoding": "0.3.0",+ "@scure/base": "^1.1.3",+ "@types/node": "^20.8.6",+ "@typescript-eslint/eslint-plugin": "^6.7.5",+ "@typescript-eslint/parser": "^6.7.5",+ "auri": "^2.0.0",+ "eslint": "^8.51.0",+ "prettier": "^3.0.3",+ "typescript": "^5.2.2",+ "vitest": "1.6.0"+ }+ },+ "../../node_modules/.pnpm/@[email protected]/node_modules/@oslojs/encoding": {+ "version": "1.1.0",+ "license": "MIT",+ "devDependencies": {+ "@scure/base": "^1.1.6",+ "@types/node": "^20.11.25",+ "@typescript-eslint/eslint-plugin": "^6.7.5",+ "@typescript-eslint/parser": "^6.7.5",+ "auri": "^2.0.0",+ "eslint": "^8.51.0",+ "prettier": "^3.0.3",+ "typescript": "^5.2.2",+ "vitest": "^0.34.6"+ }+ },+ "../../node_modules/.pnpm/@[email protected]/node_modules/@paralleldrive/cuid2": {+ "version": "2.2.2",+ "license": "MIT",+ "dependencies": {+ "@noble/hashes": "^1.1.5"+ },+ "devDependencies": {+ "eslint": "8.30.0",+ "eslint-config-next": "13.1.1",+ "eslint-config-prettier": "8.5.0",+ "eslint-plugin-prettier": "4.2.1",+ "next": "13.1.1",+ "pre-commit": "1.2.2",+ "prettier": "2.8.1",+ "react": "18.2.0",+ "react-dom": "18.2.0",+ "release-it": "15.5.1",+ "riteway": "7.0.0",+ "tap-nirvana": "1.1.0",+ "updtr": "4.0.0",+ "watch": "1.0.2"+ }+ },+ "../../node_modules/.pnpm/@[email protected]/node_modules/@types/bcrypt": {+ "version": "5.0.2",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "../../node_modules/.pnpm/@[email protected]/node_modules/@types/better-sqlite3": {+ "version": "7.6.13",+ "extraneous": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*"+ }+ },+ "../../node_modules/.pnpm/@[email protected]/node_modules/@types/node": {+ "version": "22.15.31",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "undici-types": "~6.21.0"+ }+ },+ "../../node_modules/.pnpm/[email protected]/node_modules/bcrypt": {+ "version": "6.0.0",+ "hasInstallScript": true,+ "license": "MIT",+ "dependencies": {+ "node-addon-api": "^8.3.0",+ "node-gyp-build": "^4.8.4"+ },+ "devDependencies": {+ "jest": "^29.7.0",+ "prebuildify": "^6.0.1"+ },+ "engines": {+ "node": ">= 18"+ }+ },+ "../../node_modules/.pnpm/[email protected]/node_modules/better-sqlite3": {+ "version": "11.10.0",+ "extraneous": true,+ "hasInstallScript": true,+ "license": "MIT",+ "dependencies": {+ "bindings": "^1.5.0",+ "prebuild-install": "^7.1.1"+ },+ "devDependencies": {+ "chai": "^4.3.8",+ "cli-color": "^2.0.3",+ "fs-extra": "^11.1.1",+ "mocha": "^10.2.0",+ "nodemark": "^0.3.0",+ "prebuild": "^13.0.1",+ "sqlite": "^5.0.1",+ "sqlite3": "^5.1.6"+ }+ },+ "../../node_modules/.pnpm/[email protected]/node_modules/dotenv": {+ "version": "16.5.0",+ "license": "BSD-2-Clause",+ "devDependencies": {+ "@types/node": "^18.11.3",+ "decache": "^4.6.2",+ "sinon": "^14.0.1",+ "standard": "^17.0.0",+ "standard-version": "^9.5.0",+ "tap": "^19.2.0",+ "typescript": "^4.8.4"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://dotenvx.com"+ }+ },+ "../../node_modules/.pnpm/[email protected]/node_modules/drizzle-kit": {+ "version": "0.31.1",+ "license": "MIT",+ "dependencies": {+ "@drizzle-team/brocli": "^0.10.2",+ "@esbuild-kit/esm-loader": "^2.5.5",+ "esbuild": "^0.25.2",+ "esbuild-register": "^3.5.0"+ },+ "bin": {+ "drizzle-kit": "bin.cjs"+ },+ "devDependencies": {+ "@arethetypeswrong/cli": "^0.15.3",+ "@aws-sdk/client-rds-data": "^3.556.0",+ "@cloudflare/workers-types": "^4.20230518.0",+ "@electric-sql/pglite": "^0.2.12",+ "@hono/node-server": "^1.9.0",+ "@hono/zod-validator": "^0.2.1",+ "@libsql/client": "^0.10.0",+ "@neondatabase/serverless": "^0.9.1",+ "@originjs/vite-plugin-commonjs": "^1.0.3",+ "@planetscale/database": "^1.16.0",+ "@types/better-sqlite3": "^7.6.13",+ "@types/dockerode": "^3.3.28",+ "@types/glob": "^8.1.0",+ "@types/json-diff": "^1.0.3",+ "@types/micromatch": "^4.0.9",+ "@types/minimatch": "^5.1.2",+ "@types/node": "^18.11.15",+ "@types/pg": "^8.10.7",+ "@types/pluralize": "^0.0.33",+ "@types/semver": "^7.5.5",+ "@types/uuid": "^9.0.8",+ "@types/ws": "^8.5.10",+ "@typescript-eslint/eslint-plugin": "^7.2.0",+ "@typescript-eslint/parser": "^7.2.0",+ "@vercel/postgres": "^0.8.0",+ "ava": "^5.1.0",+ "better-sqlite3": "^11.9.1",+ "bun-types": "^0.6.6",+ "camelcase": "^7.0.1",+ "chalk": "^5.2.0",+ "commander": "^12.1.0",+ "dockerode": "^3.3.4",+ "dotenv": "^16.0.3",+ "drizzle-kit": "0.25.0-b1faa33",+ "drizzle-orm": "workspace:./drizzle-orm/dist",+ "env-paths": "^3.0.0",+ "esbuild-node-externals": "^1.9.0",+ "eslint": "^8.57.0",+ "eslint-config-prettier": "^9.1.0",+ "eslint-plugin-prettier": "^5.1.3",+ "gel": "^2.0.0",+ "get-port": "^6.1.2",+ "glob": "^8.1.0",+ "hanji": "^0.0.5",+ "hono": "^4.1.5",+ "json-diff": "1.0.6",+ "micromatch": "^4.0.8",+ "minimatch": "^7.4.3",+ "mysql2": "3.3.3",+ "node-fetch": "^3.3.2",+ "ohm-js": "^17.1.0",+ "pg": "^8.11.5",+ "pluralize": "^8.0.0",+ "postgres": "^3.4.4",+ "prettier": "^2.8.1",+ "semver": "^7.5.4",+ "superjson": "^2.2.1",+ "tsup": "^8.0.2",+ "tsx": "^3.12.1",+ "typescript": "^5.6.3",+ "uuid": "^9.0.1",+ "vite-tsconfig-paths": "^4.3.2",+ "vitest": "^1.4.0",+ "wrangler": "^3.22.1",+ "ws": "^8.16.0",+ "zod": "^3.20.2",+ "zx": "^8.3.2"+ }+ },+ "../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/drizzle-orm": {+ "version": "0.43.1",+ "license": "Apache-2.0",+ "devDependencies": {+ "@aws-sdk/client-rds-data": "^3.549.0",+ "@cloudflare/workers-types": "^4.20241112.0",+ "@electric-sql/pglite": "^0.2.12",+ "@libsql/client": "^0.10.0",+ "@libsql/client-wasm": "^0.10.0",+ "@miniflare/d1": "^2.14.4",+ "@neondatabase/serverless": "^0.10.0",+ "@op-engineering/op-sqlite": "^2.0.16",+ "@opentelemetry/api": "^1.4.1",+ "@originjs/vite-plugin-commonjs": "^1.0.3",+ "@planetscale/database": "^1.16.0",+ "@prisma/client": "5.14.0",+ "@tidbcloud/serverless": "^0.1.1",+ "@types/better-sqlite3": "^7.6.4",+ "@types/node": "^20.2.5",+ "@types/pg": "^8.10.1",+ "@types/react": "^18.2.45",+ "@types/sql.js": "^1.4.4",+ "@vercel/postgres": "^0.8.0",+ "@xata.io/client": "^0.29.3",+ "better-sqlite3": "^11.9.1",+ "bun-types": "^1.2.0",+ "cpy": "^10.1.0",+ "expo-sqlite": "^14.0.0",+ "gel": "^2.0.0",+ "glob": "^11.0.1",+ "knex": "^2.4.2",+ "kysely": "^0.25.0",+ "mysql2": "^3.3.3",+ "pg": "^8.11.0",+ "postgres": "^3.3.5",+ "prisma": "5.14.0",+ "react": "^18.2.0",+ "sql.js": "^1.8.0",+ "sqlite3": "^5.1.2",+ "ts-morph": "^25.0.1",+ "tslib": "^2.5.2",+ "tsx": "^3.12.7",+ "vite-tsconfig-paths": "^4.3.2",+ "vitest": "^1.6.0",+ "zod": "^3.20.2",+ "zx": "^7.2.2"+ },+ "peerDependencies": {+ "@aws-sdk/client-rds-data": ">=3",+ "@cloudflare/workers-types": ">=4",+ "@electric-sql/pglite": ">=0.2.0",+ "@libsql/client": ">=0.10.0",+ "@libsql/client-wasm": ">=0.10.0",+ "@neondatabase/serverless": ">=0.10.0",+ "@op-engineering/op-sqlite": ">=2",+ "@opentelemetry/api": "^1.4.1",+ "@planetscale/database": ">=1.13",+ "@prisma/client": "*",+ "@tidbcloud/serverless": "*",+ "@types/better-sqlite3": "*",+ "@types/pg": "*",+ "@types/sql.js": "*",+ "@vercel/postgres": ">=0.8.0",+ "@xata.io/client": "*",+ "better-sqlite3": ">=7",+ "bun-types": "*",+ "expo-sqlite": ">=14.0.0",+ "gel": ">=2",+ "knex": "*",+ "kysely": "*",+ "mysql2": ">=2",+ "pg": ">=8",+ "postgres": ">=3",+ "sql.js": ">=1",+ "sqlite3": ">=5"+ },+ "peerDependenciesMeta": {+ "@aws-sdk/client-rds-data": {+ "optional": true+ },+ "@cloudflare/workers-types": {+ "optional": true+ },+ "@electric-sql/pglite": {+ "optional": true+ },+ "@libsql/client": {+ "optional": true+ },+ "@libsql/client-wasm": {+ "optional": true+ },+ "@neondatabase/serverless": {+ "optional": true+ },+ "@op-engineering/op-sqlite": {+ "optional": true+ },+ "@opentelemetry/api": {+ "optional": true+ },+ "@planetscale/database": {+ "optional": true+ },+ "@prisma/client": {+ "optional": true+ },+ "@tidbcloud/serverless": {+ "optional": true+ },+ "@types/better-sqlite3": {+ "optional": true+ },+ "@types/pg": {+ "optional": true+ },+ "@types/sql.js": {+ "optional": true+ },+ "@vercel/postgres": {+ "optional": true+ },+ "@xata.io/client": {+ "optional": true+ },+ "better-sqlite3": {+ "optional": true+ },+ "bun-types": {+ "optional": true+ },+ "expo-sqlite": {+ "optional": true+ },+ "gel": {+ "optional": true+ },+ "knex": {+ "optional": true+ },+ "kysely": {+ "optional": true+ },+ "mysql2": {+ "optional": true+ },+ "pg": {+ "optional": true+ },+ "postgres": {+ "optional": true+ },+ "prisma": {+ "optional": true+ },+ "sql.js": {+ "optional": true+ },+ "sqlite3": {+ "optional": true+ }+ }+ },+ "../../node_modules/.pnpm/[email protected]/node_modules/esbuild": {+ "version": "0.25.5",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.25.5",+ "@esbuild/android-arm": "0.25.5",+ "@esbuild/android-arm64": "0.25.5",+ "@esbuild/android-x64": "0.25.5",+ "@esbuild/darwin-arm64": "0.25.5",+ "@esbuild/darwin-x64": "0.25.5",+ "@esbuild/freebsd-arm64": "0.25.5",+ "@esbuild/freebsd-x64": "0.25.5",+ "@esbuild/linux-arm": "0.25.5",+ "@esbuild/linux-arm64": "0.25.5",+ "@esbuild/linux-ia32": "0.25.5",+ "@esbuild/linux-loong64": "0.25.5",+ "@esbuild/linux-mips64el": "0.25.5",+ "@esbuild/linux-ppc64": "0.25.5",+ "@esbuild/linux-riscv64": "0.25.5",+ "@esbuild/linux-s390x": "0.25.5",+ "@esbuild/linux-x64": "0.25.5",+ "@esbuild/netbsd-arm64": "0.25.5",+ "@esbuild/netbsd-x64": "0.25.5",+ "@esbuild/openbsd-arm64": "0.25.5",+ "@esbuild/openbsd-x64": "0.25.5",+ "@esbuild/sunos-x64": "0.25.5",+ "@esbuild/win32-arm64": "0.25.5",+ "@esbuild/win32-ia32": "0.25.5",+ "@esbuild/win32-x64": "0.25.5"+ }+ },+ "../../node_modules/.pnpm/[email protected]/node_modules/hono": {+ "version": "4.7.11",+ "license": "MIT",+ "devDependencies": {+ "@hono/eslint-config": "^1.0.2",+ "@hono/node-server": "^1.13.5",+ "@types/glob": "^8.1.0",+ "@types/jsdom": "^21.1.7",+ "@types/node": "20.11.4",+ "@types/supertest": "^2.0.16",+ "@typescript/native-preview": "7.0.0-dev.20250523.1",+ "@vitest/coverage-v8": "^3.0.5",+ "arg": "^5.0.2",+ "bun-types": "^1.1.39",+ "esbuild": "^0.15.18",+ "eslint": "^9.10.0",+ "glob": "^11.0.0",+ "jsdom": "^22.1.0",+ "msw": "^2.6.0",+ "np": "10.2.0",+ "prettier": "^2.6.2",+ "publint": "^0.1.16",+ "supertest": "^6.3.4",+ "typescript": "^5.3.3",+ "vite-plugin-fastly-js-compute": "^0.4.2",+ "vitest": "^3.0.5",+ "wrangler": "4.12.0",+ "ws": "^8.18.0",+ "zod": "^3.23.8"+ },+ "engines": {+ "node": ">=16.9.0"+ }+ },+ "../../node_modules/.pnpm/[email protected]/node_modules/tsx": {+ "version": "4.20.3",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "~0.25.0",+ "get-tsconfig": "^4.7.5"+ },+ "bin": {+ "tsx": "dist/cli.mjs"+ },+ "engines": {+ "node": ">=18.0.0"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ }+ },+ "../../node_modules/.pnpm/[email protected]/node_modules/typescript": {+ "version": "5.8.3",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "devDependencies": {+ "@dprint/formatter": "^0.4.1",+ "@dprint/typescript": "0.93.3",+ "@esfx/canceltoken": "^1.0.0",+ "@eslint/js": "^9.17.0",+ "@octokit/rest": "^21.0.2",+ "@types/chai": "^4.3.20",+ "@types/diff": "^5.2.3",+ "@types/minimist": "^1.2.5",+ "@types/mocha": "^10.0.10",+ "@types/ms": "^0.7.34",+ "@types/node": "latest",+ "@types/source-map-support": "^0.5.10",+ "@types/which": "^3.0.4",+ "@typescript-eslint/rule-tester": "^8.18.1",+ "@typescript-eslint/type-utils": "^8.18.1",+ "@typescript-eslint/utils": "^8.18.1",+ "azure-devops-node-api": "^14.1.0",+ "c8": "^10.1.3",+ "chai": "^4.5.0",+ "chalk": "^4.1.2",+ "chokidar": "^3.6.0",+ "diff": "^5.2.0",+ "dprint": "^0.47.6",+ "esbuild": "^0.24.0",+ "eslint": "^9.17.0",+ "eslint-formatter-autolinkable-stylish": "^1.4.0",+ "eslint-plugin-regexp": "^2.7.0",+ "fast-xml-parser": "^4.5.1",+ "glob": "^10.4.5",+ "globals": "^15.13.0",+ "hereby": "^1.10.0",+ "jsonc-parser": "^3.3.1",+ "knip": "^5.41.0",+ "minimist": "^1.2.8",+ "mocha": "^10.8.2",+ "mocha-fivemat-progress-reporter": "^0.1.0",+ "monocart-coverage-reports": "^2.11.4",+ "ms": "^2.1.3",+ "playwright": "^1.49.1",+ "source-map-support": "^0.5.21",+ "tslib": "^2.8.1",+ "typescript": "^5.7.2",+ "typescript-eslint": "^8.18.1",+ "which": "^3.0.1"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "../../node_modules/.pnpm/[email protected]/node_modules/zod": {+ "version": "3.25.64",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/colinhacks"+ }+ },+ "node_modules/@hono/node-server": {+ "resolved": "../../node_modules/.pnpm/@[email protected][email protected]/node_modules/@hono/node-server",+ "link": true+ },+ "node_modules/@hono/zod-validator": {+ "resolved": "../../node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@hono/zod-validator",+ "link": true+ },+ "node_modules/@oslojs/crypto": {+ "resolved": "../../node_modules/.pnpm/@[email protected]/node_modules/@oslojs/crypto",+ "link": true+ },+ "node_modules/@oslojs/encoding": {+ "resolved": "../../node_modules/.pnpm/@[email protected]/node_modules/@oslojs/encoding",+ "link": true+ },+ "node_modules/@paralleldrive/cuid2": {+ "resolved": "../../node_modules/.pnpm/@[email protected]/node_modules/@paralleldrive/cuid2",+ "link": true+ },+ "node_modules/@types/bcrypt": {+ "resolved": "../../node_modules/.pnpm/@[email protected]/node_modules/@types/bcrypt",+ "link": true+ },+ "node_modules/@types/node": {+ "resolved": "../../node_modules/.pnpm/@[email protected]/node_modules/@types/node",+ "link": true+ },+ "node_modules/@types/pg": {+ "version": "8.15.4",+ "resolved": "https://registry.npmjs.org/@types/pg/-/pg-8.15.4.tgz",+ "integrity": "sha512-I6UNVBAoYbvuWkkU3oosC8yxqH21f4/Jc4DK71JLG3dT2mdlGe1z+ep/LQGXaKaOgcvUrsQoPRqfgtMcvZiJhg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/node": "*",+ "pg-protocol": "*",+ "pg-types": "^2.2.0"+ }+ },+ "node_modules/bcrypt": {+ "resolved": "../../node_modules/.pnpm/[email protected]/node_modules/bcrypt",+ "link": true+ },+ "node_modules/dotenv": {+ "resolved": "../../node_modules/.pnpm/[email protected]/node_modules/dotenv",+ "link": true+ },+ "node_modules/drizzle-kit": {+ "resolved": "../../node_modules/.pnpm/[email protected]/node_modules/drizzle-kit",+ "link": true+ },+ "node_modules/drizzle-orm": {+ "resolved": "../../node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/drizzle-orm",+ "link": true+ },+ "node_modules/esbuild": {+ "resolved": "../../node_modules/.pnpm/[email protected]/node_modules/esbuild",+ "link": true+ },+ "node_modules/hono": {+ "resolved": "../../node_modules/.pnpm/[email protected]/node_modules/hono",+ "link": true+ },+ "node_modules/pg": {+ "version": "8.16.0",+ "resolved": "https://registry.npmjs.org/pg/-/pg-8.16.0.tgz",+ "integrity": "sha512-7SKfdvP8CTNXjMUzfcVTaI+TDzBEeaUnVwiVGZQD1Hh33Kpev7liQba9uLd4CfN8r9mCVsD0JIpq03+Unpz+kg==",+ "license": "MIT",+ "dependencies": {+ "pg-connection-string": "^2.9.0",+ "pg-pool": "^3.10.0",+ "pg-protocol": "^1.10.0",+ "pg-types": "2.2.0",+ "pgpass": "1.0.5"+ },+ "engines": {+ "node": ">= 8.0.0"+ },+ "optionalDependencies": {+ "pg-cloudflare": "^1.2.5"+ },+ "peerDependencies": {+ "pg-native": ">=3.0.1"+ },+ "peerDependenciesMeta": {+ "pg-native": {+ "optional": true+ }+ }+ },+ "node_modules/pg-cloudflare": {+ "version": "1.2.5",+ "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.2.5.tgz",+ "integrity": "sha512-OOX22Vt0vOSRrdoUPKJ8Wi2OpE/o/h9T8X1s4qSkCedbNah9ei2W2765be8iMVxQUsvgT7zIAT2eIa9fs5+vtg==",+ "license": "MIT",+ "optional": true+ },+ "node_modules/pg-connection-string": {+ "version": "2.9.0",+ "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.9.0.tgz",+ "integrity": "sha512-P2DEBKuvh5RClafLngkAuGe9OUlFV7ebu8w1kmaaOgPcpJd1RIFh7otETfI6hAR8YupOLFTY7nuvvIn7PLciUQ==",+ "license": "MIT"+ },+ "node_modules/pg-int8": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz",+ "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==",+ "license": "ISC",+ "engines": {+ "node": ">=4.0.0"+ }+ },+ "node_modules/pg-pool": {+ "version": "3.10.0",+ "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.10.0.tgz",+ "integrity": "sha512-DzZ26On4sQ0KmqnO34muPcmKbhrjmyiO4lCCR0VwEd7MjmiKf5NTg/6+apUEu0NF7ESa37CGzFxH513CoUmWnA==",+ "license": "MIT",+ "peerDependencies": {+ "pg": ">=8.0"+ }+ },+ "node_modules/pg-protocol": {+ "version": "1.10.0",+ "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.10.0.tgz",+ "integrity": "sha512-IpdytjudNuLv8nhlHs/UrVBhU0e78J0oIS/0AVdTbWxSOkFUVdsHC/NrorO6nXsQNDTT1kzDSOMJubBQviX18Q==",+ "license": "MIT"+ },+ "node_modules/pg-types": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz",+ "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==",+ "license": "MIT",+ "dependencies": {+ "pg-int8": "1.0.1",+ "postgres-array": "~2.0.0",+ "postgres-bytea": "~1.0.0",+ "postgres-date": "~1.0.4",+ "postgres-interval": "^1.1.0"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/pgpass": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz",+ "integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==",+ "license": "MIT",+ "dependencies": {+ "split2": "^4.1.0"+ }+ },+ "node_modules/postgres-array": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz",+ "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==",+ "license": "MIT",+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/postgres-bytea": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.0.tgz",+ "integrity": "sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/postgres-date": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz",+ "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==",+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/postgres-interval": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz",+ "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==",+ "license": "MIT",+ "dependencies": {+ "xtend": "^4.0.0"+ },+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/split2": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz",+ "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==",+ "license": "ISC",+ "engines": {+ "node": ">= 10.x"+ }+ },+ "node_modules/tsx": {+ "resolved": "../../node_modules/.pnpm/[email protected]/node_modules/tsx",+ "link": true+ },+ "node_modules/typescript": {+ "resolved": "../../node_modules/.pnpm/[email protected]/node_modules/typescript",+ "link": true+ },+ "node_modules/xtend": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",+ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",+ "license": "MIT",+ "engines": {+ "node": ">=0.4"+ }+ },+ "node_modules/zod": {+ "resolved": "../../node_modules/.pnpm/[email protected]/node_modules/zod",+ "link": true+ }+ }+}diff --git a/apps/api/package.json b/apps/api/package.jsonindex 7b32698e2..469f90b6b 100644--- a/apps/api/package.json+++ b/apps/api/package.json@@ -4,7 +4,7 @@"main": "./src/index.ts","scripts": {"dev": "tsx watch src/index.ts",- "build": "esbuild src/index.ts --bundle --platform=node --outdir=dist --format=cjs --external:better-sqlite3 --external:bcrypt --external:mock-aws-s3 --external:aws-sdk --external:nock"+ "build": "esbuild src/index.ts --bundle --platform=node --outdir=dist --format=cjs --external:pg --external:bcrypt --external:mock-aws-s3 --external:aws-sdk --external:nock"},"dependencies": {"@hono/node-server": "^1.14.4",@@ -13,17 +13,17 @@"@oslojs/encoding": "^1.1.0","@paralleldrive/cuid2": "^2.2.2","bcrypt": "^6.0.0",- "better-sqlite3": "^11.10.0","dotenv": "^16.5.0","drizzle-kit": "^0.31.1","drizzle-orm": "^0.43.0","hono": "^4.7.11",+ "pg": "^8.16.0","zod": "^3.25.56"},"devDependencies": {"@types/bcrypt": "^5.0.2",- "@types/better-sqlite3": "^7.6.13","@types/node": "^22.15.30",+ "@types/pg": "^8.15.4","esbuild": ">=0.25.0","tsx": "^4.19.4","typescript": "^5.8.3"diff --git a/apps/api/src/database/index.ts b/apps/api/src/database/index.tsindex d0023296c..cdfaa2e8b 100644--- a/apps/api/src/database/index.ts+++ b/apps/api/src/database/index.ts@@ -1,14 +1,16 @@-import { join } from "node:path";-import Database from "better-sqlite3";-import { drizzle } from "drizzle-orm/better-sqlite3";+import dotenv from "dotenv";+import { drizzle } from "drizzle-orm/node-postgres";+import { Pool } from "pg";import * as schema from "./schema";-const dbPath = process.env.DB_PATH- ? process.env.DB_PATH- : join(process.cwd(), "kaneo.db");+dotenv.config();-const sqlite = new Database(dbPath);+const pool = new Pool({+ connectionString:+ process.env.DATABASE_URL ||+ "postgresql://kaneo_user:kaneo_password@localhost:5432/kaneo",+});-const db = drizzle(sqlite, { schema });+const db = drizzle(pool, { schema });export default db;diff --git a/apps/api/src/database/schema.ts b/apps/api/src/database/schema.tsindex 0b4a9dacd..abd622776 100644--- a/apps/api/src/database/schema.ts+++ b/apps/api/src/database/schema.ts@@ -1,19 +1,23 @@import { createId } from "@paralleldrive/cuid2";-import { int, integer, sqliteTable, text } from "drizzle-orm/sqlite-core";+import {+ boolean,+ integer,+ pgTable,+ text,+ timestamp,+} from "drizzle-orm/pg-core";-export const userTable = sqliteTable("user", {+export const userTable = pgTable("user", {id: text("id").$defaultFn(() => createId()).primaryKey(),name: text("name").notNull(),password: text("password").notNull(),email: text("email").notNull().unique(),- createdAt: integer("created_at", { mode: "timestamp" })- .default(new Date())- .notNull(),+ createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),});-export const sessionTable = sqliteTable("session", {+export const sessionTable = pgTable("session", {id: text("id").primaryKey(),userId: text("user_id").notNull()@@ -21,12 +25,10 @@ export const sessionTable = sqliteTable("session", {onDelete: "cascade",onUpdate: "cascade",}),- expiresAt: integer("expires_at", {- mode: "timestamp",- }).notNull(),+ expiresAt: timestamp("expires_at", { mode: "date" }).notNull(),});-export const workspaceTable = sqliteTable("workspace", {+export const workspaceTable = pgTable("workspace", {id: text("id").$defaultFn(() => createId()).primaryKey(),@@ -38,12 +40,10 @@ export const workspaceTable = sqliteTable("workspace", {onDelete: "cascade",onUpdate: "cascade",}),- createdAt: integer("created_at", { mode: "timestamp" })- .default(new Date())- .notNull(),+ createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),});-export const workspaceUserTable = sqliteTable("workspace_member", {+export const workspaceUserTable = pgTable("workspace_member", {id: text("id").$defaultFn(() => createId()).primaryKey(),@@ -53,15 +53,16 @@ export const workspaceUserTable = sqliteTable("workspace_member", {onDelete: "cascade",onUpdate: "cascade",}),- userEmail: text("user_email"),+ userEmail: text("user_email").references(() => userTable.email, {+ onDelete: "cascade",+ onUpdate: "cascade",+ }),role: text("role").default("member").notNull(),- joinedAt: integer("joined_at", { mode: "timestamp" })- .default(new Date())- .notNull(),+ joinedAt: timestamp("joined_at", { mode: "date" }).defaultNow().notNull(),status: text("status").default("pending").notNull(),});-export const projectTable = sqliteTable("project", {+export const projectTable = pgTable("project", {id: text("id").$defaultFn(() => createId()).primaryKey(),@@ -75,12 +76,11 @@ export const projectTable = sqliteTable("project", {icon: text("icon").default("Layout"),name: text("name").notNull(),description: text("description"),- createdAt: integer("created_at", { mode: "timestamp" })- .default(new Date())- .notNull(),+ createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),+ isPublic: boolean("is_public").default(false),});-export const taskTable = sqliteTable("task", {+export const taskTable = pgTable("task", {id: text("id").$defaultFn(() => createId()).primaryKey(),@@ -90,8 +90,8 @@ export const taskTable = sqliteTable("task", {onDelete: "cascade",onUpdate: "cascade",}),- position: int("position").default(0),- number: int("number").default(1),+ position: integer("position").default(0),+ number: integer("number").default(1),userEmail: text("assignee_email").references(() => userTable.email, {onDelete: "cascade",onUpdate: "cascade",@@ -100,13 +100,11 @@ export const taskTable = sqliteTable("task", {description: text("description"),status: text("status").notNull().default("to-do"),priority: text("priority").default("low"),- dueDate: integer("due_date", { mode: "timestamp" }),- createdAt: integer("created_at", { mode: "timestamp" })- .default(new Date())- .notNull(),+ dueDate: timestamp("due_date", { mode: "date" }),+ createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),});-export const timeEntryTable = sqliteTable("time_entry", {+export const timeEntryTable = pgTable("time_entry", {id: text("id").$defaultFn(() => createId()).primaryKey(),@@ -121,15 +119,13 @@ export const timeEntryTable = sqliteTable("time_entry", {onUpdate: "cascade",}),description: text("description"),- startTime: integer("start_time", { mode: "timestamp" }).notNull(),- endTime: integer("end_time", { mode: "timestamp" }),+ startTime: timestamp("start_time", { mode: "date" }).notNull(),+ endTime: timestamp("end_time", { mode: "date" }),duration: integer("duration").default(0), // Duration in seconds- createdAt: integer("created_at", { mode: "timestamp" })- .default(new Date())- .notNull(),+ createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),});-export const activityTable = sqliteTable("activity", {+export const activityTable = pgTable("activity", {id: text("id").$defaultFn(() => createId()).primaryKey(),@@ -140,9 +136,7 @@ export const activityTable = sqliteTable("activity", {onUpdate: "cascade",}),type: text("type").notNull(),- createdAt: integer("created_at", { mode: "timestamp" })- .default(new Date())- .notNull(),+ createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),userEmail: text("user_email").notNull().references(() => userTable.email, {@@ -152,15 +146,13 @@ export const activityTable = sqliteTable("activity", {content: text("content"),});-export const labelTable = sqliteTable("label", {+export const labelTable = pgTable("label", {id: text("id").$defaultFn(() => createId()).primaryKey(),name: text("name").notNull(),color: text("color").notNull(),- createdAt: integer("created_at", { mode: "timestamp" })- .default(new Date())- .notNull(),+ createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),taskId: text("task_id").notNull().references(() => taskTable.id, {@@ -169,7 +161,7 @@ export const labelTable = sqliteTable("label", {}),});-export const notificationTable = sqliteTable("notification", {+export const notificationTable = pgTable("notification", {id: text("id").$defaultFn(() => createId()).primaryKey(),@@ -182,10 +174,8 @@ export const notificationTable = sqliteTable("notification", {title: text("title").notNull(),content: text("content"),type: text("type").notNull().default("info"),- isRead: integer("is_read", { mode: "boolean" }).default(false),+ isRead: boolean("is_read").default(false),resourceId: text("resource_id"),resourceType: text("resource_type"),- createdAt: integer("created_at", { mode: "timestamp" })- .default(new Date())- .notNull(),+ createdAt: timestamp("created_at", { mode: "date" }).defaultNow().notNull(),});diff --git a/apps/api/src/index.ts b/apps/api/src/index.tsindex de58460ce..ca8269258 100644--- a/apps/api/src/index.ts+++ b/apps/api/src/index.ts@@ -1,5 +1,5 @@import { serve } from "@hono/node-server";-import { migrate } from "drizzle-orm/better-sqlite3/migrator";+import { migrate } from "drizzle-orm/postgres-js/migrator";import { Hono } from "hono";import { getCookie } from "hono/cookie";import { cors } from "hono/cors";@@ -9,6 +9,7 @@ import label from "./label";import { auth } from "./middlewares/auth";import notification from "./notification";import project from "./project";+import { getPublicProject } from "./project/controllers/get-public-project";import task from "./task";import timeEntry from "./time-entry";import user from "./user";@@ -29,6 +30,13 @@ app.use(}),);+const publicProjectRoute = app.get("/public-project/:id", async (c) => {+ const { id } = c.req.param();+ const project = await getPublicProject(id);++ return c.json(project);+});+const userRoute = app.route("/user", user);if (!isDemoMode) {@@ -111,4 +119,5 @@ export type AppType =| typeof meRoute| typeof timeEntryRoute| typeof labelRoute- | typeof notificationRoute;+ | typeof notificationRoute+ | typeof publicProjectRoute;diff --git a/apps/api/src/project/controllers/get-projects.ts b/apps/api/src/project/controllers/get-projects.tsindex d13713a69..4e8623414 100644--- a/apps/api/src/project/controllers/get-projects.ts+++ b/apps/api/src/project/controllers/get-projects.ts@@ -12,6 +12,7 @@ async function getProjects(workspaceId: string) {createdAt: projectTable.createdAt,icon: projectTable.icon,slug: projectTable.slug,+ isPublic: projectTable.isPublic,workspace: {id: workspaceTable.id,name: workspaceTable.name,diff --git a/apps/api/src/project/controllers/get-public-project.ts b/apps/api/src/project/controllers/get-public-project.tsnew file mode 100644index 000000000..d78f3cc30--- /dev/null+++ b/apps/api/src/project/controllers/get-public-project.ts@@ -0,0 +1,15 @@+import getTasks from "../../task/controllers/get-tasks";++export async function getPublicProject(id: string) {+ const project = await getTasks(id);++ if (!project) {+ throw new Error("Project not found");+ }++ if (!project.isPublic) {+ throw new Error("Project is not public");+ }++ return project;+}diff --git a/apps/api/src/project/controllers/update-project.ts b/apps/api/src/project/controllers/update-project.tsindex d0157b6df..6e42286c4 100644--- a/apps/api/src/project/controllers/update-project.ts+++ b/apps/api/src/project/controllers/update-project.ts@@ -9,6 +9,7 @@ async function updateProject(icon: string,slug: string,description: string,+ isPublic: boolean,) {const [existingProject] = await db.select()@@ -30,6 +31,7 @@ async function updateProject(icon,slug,description,+ isPublic,}).where(eq(projectTable.id, id)).returning();diff --git a/apps/api/src/project/index.ts b/apps/api/src/project/index.tsindex 90354c1aa..f211727f3 100644--- a/apps/api/src/project/index.ts+++ b/apps/api/src/project/index.ts@@ -55,13 +55,21 @@ const project = new Hono()icon: z.string(),slug: z.string(),description: z.string(),+ isPublic: z.boolean(),}),),async (c) => {const { id } = c.req.valid("param");- const { name, icon, slug, description } = c.req.valid("json");+ const { name, icon, slug, description, isPublic } = c.req.valid("json");- const project = await updateProject(id, name, icon, slug, description);+ const project = await updateProject(+ id,+ name,+ icon,+ slug,+ description,+ isPublic,+ );return c.json(project);},diff --git a/apps/api/src/task/controllers/get-tasks.ts b/apps/api/src/task/controllers/get-tasks.tsindex 0e354b587..8022ef8f1 100644--- a/apps/api/src/task/controllers/get-tasks.ts+++ b/apps/api/src/task/controllers/get-tasks.ts@@ -62,6 +62,7 @@ async function getTasks(projectId: string) {slug: project.slug,icon: project.icon,description: project.description,+ isPublic: project.isPublic,workspaceId: project.workspaceId,columns,archivedTasks,diff --git a/apps/docs/app/(home)/layout.tsx b/apps/docs/app/(home)/layout.tsxindex 4a546fc1d..87b2b9d21 100644--- a/apps/docs/app/(home)/layout.tsx+++ b/apps/docs/app/(home)/layout.tsx@@ -5,14 +5,43 @@ import Script from "next/script";import type { ReactNode } from "react";export const metadata: Metadata = {- title: "Kaneo",+ title: "Kaneo - Open Source Project Management Platform",description:- "An open source project management platform focused on simplicity and efficiency.",+ "An open source project management platform focused on simplicity and efficiency. Self-host it, customize it, make it yours.",alternates: {canonical: "https://kaneo.app",},openGraph: {- images: ["/og.png"],+ type: "website",+ locale: "en_US",+ url: "https://kaneo.app",+ title: "Kaneo - Open Source Project Management Platform",+ description:+ "An open source project management platform focused on simplicity and efficiency. Self-host it, customize it, make it yours.",+ siteName: "Kaneo",+ images: [+ {+ url: "/og-image.png",+ width: 1200,+ height: 630,+ alt: "Kaneo - Open Source Project Management Platform",+ },+ ],+ },+ twitter: {+ card: "summary_large_image",+ title: "Kaneo - Open Source Project Management Platform",+ description:+ "An open source project management platform focused on simplicity and efficiency. Self-host it, customize it, make it yours.",+ images: ["/og-image.png"],+ creator: "@usekaneo",+ },+ robots: {+ index: true,+ follow: true,+ googleBot: {+ "max-image-preview": "none",+ },},metadataBase: new URL("https://kaneo.app"),};diff --git a/apps/docs/app/docs/layout.tsx b/apps/docs/app/docs/layout.tsxindex b20a5effc..9ab181dbd 100644--- a/apps/docs/app/docs/layout.tsx+++ b/apps/docs/app/docs/layout.tsx@@ -1,21 +1,67 @@import { baseOptions } from "@/app/layout.config";import { source } from "@/lib/source";import { DocsLayout, type DocsLayoutProps } from "fumadocs-ui/layouts/docs";+import type { Metadata } from "next";import Script from "next/script";import type { ReactNode } from "react";+export const metadata: Metadata = {+ title: {+ template: "%s | Kaneo Documentation",+ default: "Documentation | Kaneo",+ },+ description:+ "Complete documentation for Kaneo - the open source project management platform. Learn how to deploy, configure, and use Kaneo for your team.",+ keywords: [+ "kaneo documentation",+ "project management docs",+ "self-hosted setup",+ "docker deployment",+ "kubernetes deployment",+ "nginx configuration",+ "traefik setup",+ "postgresql setup",+ "api documentation",+ "installation guide",+ ],+ openGraph: {+ title: "Kaneo Documentation",+ description:+ "Complete documentation for Kaneo - the open source project management platform. Learn how to deploy, configure, and use Kaneo for your team.",+ type: "website",+ url: "https://kaneo.app/docs",+ siteName: "Kaneo",+ images: [+ {+ url: "/og-docs.png",+ width: 1200,+ height: 630,+ alt: "Kaneo Documentation",+ },+ ],+ },+ twitter: {+ card: "summary_large_image",+ title: "Kaneo Documentation",+ description:+ "Complete documentation for Kaneo - the open source project management platform. Learn how to deploy, configure, and use Kaneo for your team.",+ images: ["/og-docs.png"],+ },+ alternates: {+ canonical: "https://kaneo.app/docs",+ },+ robots: {+ index: true,+ follow: true,+ },+};+const docsOptions: DocsLayoutProps = {...baseOptions,tree: source.pageTree,githubUrl: "https://github.com/usekaneo/kaneo",- sidebar: {- tabs: [- {- title: "Components",- description: "Hello World!",- url: "/docs/components",- },- ],+ nav: {+ ...baseOptions.nav,},};diff --git a/apps/docs/app/layout.tsx b/apps/docs/app/layout.tsxindex 35f5bcc85..d81c53350 100644--- a/apps/docs/app/layout.tsx+++ b/apps/docs/app/layout.tsx@@ -1,5 +1,6 @@import "./global.css";import { RootProvider } from "fumadocs-ui/provider";+import type { Metadata } from "next";import { Inter } from "next/font/google";import type { ReactNode } from "react";@@ -7,9 +8,96 @@ const inter = Inter({subsets: ["latin"],});+export const metadata: Metadata = {+ metadataBase: new URL("https://kaneo.app"),+ title: {+ default: "Kaneo - Open Source Project Management Platform",+ template: "%s | Kaneo",+ },+ description:+ "Kaneo is a modern, self-hosted project management platform focused on simplicity and efficiency. Open source, customizable, and built for teams that value productivity.",+ keywords: [+ "project management",+ "open source",+ "self-hosted",+ "team collaboration",+ "task management",+ "productivity",+ "kanban board",+ "agile",+ "docker",+ "postgresql",+ "typescript",+ "react",+ "nextjs",+ ],+ authors: [{ name: "Kaneo Team" }],+ creator: "Kaneo Team",+ publisher: "Kaneo",+ formatDetection: {+ email: false,+ address: false,+ telephone: false,+ },+ openGraph: {+ type: "website",+ locale: "en_US",+ url: "https://kaneo.app",+ title: "Kaneo - Open Source Project Management Platform",+ description:+ "Modern, self-hosted project management platform focused on simplicity and efficiency. Open source and built for teams.",+ siteName: "Kaneo",+ images: [+ {+ url: "/og-image.png",+ width: 1200,+ height: 630,+ alt: "Kaneo - Open Source Project Management Platform",+ },+ ],+ },+ twitter: {+ card: "summary_large_image",+ title: "Kaneo - Open Source Project Management Platform",+ description:+ "Modern, self-hosted project management platform focused on simplicity and efficiency. Open source and built for teams.",+ images: ["/og-image.png"],+ creator: "@usekaneo",+ },+ robots: {+ index: true,+ follow: true,+ googleBot: {+ index: true,+ follow: true,+ "max-video-preview": -1,+ "max-image-preview": "none",+ "max-snippet": -1,+ },+ },+ alternates: {+ canonical: "https://kaneo.app",+ types: {+ "application/rss+xml": [+ { url: "/feed.xml", title: "Kaneo Blog RSS Feed" },+ ],+ },+ },+ category: "technology",+};+export default function Layout({ children }: { children: ReactNode }) {return (<html lang="en" className={inter.className} suppressHydrationWarning>+ <head>+ <link rel="icon" href="/favicon.ico" sizes="any" />+ <link rel="icon" href="/icon.svg" type="image/svg+xml" />+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />+ <link rel="manifest" href="/manifest.json" />+ <link rel="sitemap" type="application/xml" href="/sitemap.xml" />+ <meta name="theme-color" content="#4f46e5" />+ <meta name="color-scheme" content="light dark" />+ </head><body className="flex flex-col min-h-screen"><RootProvidersearch={{diff --git a/apps/docs/content/docs/deployments/kubernetes.mdx b/apps/docs/content/docs/deployments/kubernetes.mdxindex 32c83b028..141a68e41 100644--- a/apps/docs/content/docs/deployments/kubernetes.mdx+++ b/apps/docs/content/docs/deployments/kubernetes.mdx@@ -1,21 +1,28 @@----title: Kubernetes-description: Deploy Kaneo on Kubernetes+title: Kubernetes Deployment Guide+description: Deploy Kaneo on Kubernetes using Helm charts. Complete guide for production-ready deployment with PostgreSQL, ingress configuration, and scaling options.---import { Step, Steps } from 'fumadocs-ui/components/steps';-This guide explains how to deploy Kaneo on Kubernetes using our Helm chart. This setup is ideal for production environments where you need scalability and high availability.+# Kubernetes Deployment Guide++This comprehensive guide explains how to deploy Kaneo on Kubernetes using our official Helm chart. This setup is ideal for production environments where you need scalability, high availability, and enterprise-grade infrastructure.## Prerequisites-- A Kubernetes cluster (v1.19+)-- Helm 3 installed-- `kubectl` configured to communicate with your cluster-- Basic knowledge of Kubernetes and Helm+Before you begin, ensure you have:++- **Kubernetes cluster** (v1.19 or higher)+- **Helm 3** installed and configured+- **kubectl** configured to communicate with your cluster+- **Basic knowledge** of Kubernetes and Helm concepts+- **Ingress controller** (nginx, traefik, etc.) for production deployments++## Quick Installation<Steps><Step>-Clone the Kaneo repository:+**Clone the Kaneo repository**```bashgit clone https://github.com/usekaneo/kaneo.git@@ -24,15 +31,19 @@ cd kaneo</Step><Step>-Install the Helm chart with default values:+**Install with default configuration**```bashhelm install kaneo ./charts/kaneo --namespace kaneo --create-namespace```++This will deploy Kaneo with PostgreSQL and default settings.</Step><Step>-Access Kaneo using port forwarding:+**Access your deployment**++Use port forwarding to access the services locally:```bash# Port forward to access both services@@ -50,9 +61,27 @@ For production environments, you should expose Kaneo through an Ingress controll<Steps><Step>-Create a values file named `kaneo-values.yaml`:+**Create a production values file**++Create a file named `kaneo-values.yaml` with production-ready configuration:```yaml+# PostgreSQL configuration+postgresql:+ auth:+ password: "your-secure-db-password"+ persistence:+ size: 20Gi+ storageClass: "managed-premium"+ resources:+ limits:+ cpu: 500m+ memory: 512Mi+ requests:+ cpu: 100m+ memory: 128Mi++# API configurationapi:env:jwtAccess: "your-secure-jwt-token"@@ -66,10 +95,7 @@ api:cpu: 100mmemory: 256Mi- persistence:- enabled: true- size: 10Gi-+# Web configurationweb:env:apiUrl: "https://your-domain.com"@@ -108,7 +134,7 @@ ingress:</Step><Step>-Install the Helm chart with your custom values:+**Deploy with custom configuration**```bashhelm install kaneo ./charts/kaneo \@@ -119,33 +145,44 @@ helm install kaneo ./charts/kaneo \</Step><Step>+**Configure DNS**+Configure your DNS settings to point `your-domain.com` to your Ingress controller's external IP or load balancer.</Step><Step>+**Verify deployment**+You should now be able to access Kaneo at `https://your-domain.com` and the API will be accessible at `https://your-domain.com/api`. 🎉</Step></Steps>## Using Secrets for Sensitive Data-For better security, you can store sensitive data like JWT tokens in Kubernetes Secrets:+For better security, you can store sensitive data like JWT tokens and database credentials in Kubernetes Secrets:<Steps><Step>-Create a Secret for the JWT access token:+**Create secrets**```bashkubectl create secret generic kaneo-secrets \--namespace kaneo \- --from-literal=jwt-access="your-secure-jwt-token"+ --from-literal=jwt-access="your-secure-jwt-token" \+ --from-literal=postgres-password="your-secure-db-password"```</Step><Step>-Update your values file to use the Secret:+**Update values to use secrets**```yaml+postgresql:+ auth:+ existingSecret: "kaneo-secrets"+ secretKeys:+ userPasswordKey: "postgres-password"+api:env:existingSecret:@@ -156,7 +193,7 @@ api:</Step><Step>-Upgrade your Helm release:+**Upgrade your deployment**```bashhelm upgrade kaneo ./charts/kaneo \@@ -166,16 +203,61 @@ helm upgrade kaneo ./charts/kaneo \</Step></Steps>+## Using External PostgreSQL Database++If you prefer to use an external PostgreSQL database instead of the bundled one:++<Steps>+<Step>+**Configure external database**++Update your values file to disable the bundled PostgreSQL and configure external database:++```yaml+# Disable bundled PostgreSQL+postgresql:+ enabled: false++api:+ env:+ jwtAccess: "your-secure-jwt-token"+ database:+ external:+ enabled: true+ host: "your-postgres-host.com"+ port: 5432+ database: "kaneo"+ username: "kaneo_user"+ password: "your-db-password"+```+</Step>++<Step>+**Deploy or upgrade**++```bash+helm upgrade --install kaneo ./charts/kaneo \+ --namespace kaneo \+ --create-namespace \+ -f kaneo-values.yaml+```+</Step>+</Steps>+## Using Gateway APIAs an alternative to Ingress, you can use the Kubernetes Gateway API for more advanced routing capabilities:<Steps><Step>+**Verify Gateway API installation**+Make sure the Gateway API is installed in your cluster.</Step><Step>+**Create Gateway configuration**+Create a file named `kaneo-gateway.yaml`:```yaml@@ -218,7 +300,7 @@ spec:</Step><Step>-Apply the Gateway configuration:+**Apply the configuration**```bashkubectl apply -f kaneo-gateway.yaml@@ -226,6 +308,26 @@ kubectl apply -f kaneo-gateway.yaml</Step></Steps>+## Database Management++### Backup and Recovery++For production deployments, consider implementing regular database backups:++```bash+# Example backup command+kubectl exec -it deployment/kaneo-postgresql -- pg_dump -U kaneo_user kaneo > kaneo-backup.sql+```++### Migration from SQLite++If you're migrating from a previous SQLite-based installation, you'll need to:+1. Export your data from SQLite+2. Deploy the new PostgreSQL-based chart+3. Import your data into PostgreSQL++Contact the Kaneo community on [Discord](https://discord.gg/rU4tSyhXXU) for migration assistance.+## UninstallingTo uninstall Kaneo from your Kubernetes cluster:@@ -239,5 +341,5 @@ This will remove all the Kubernetes components associated with the chart and del## Next Steps- Configure monitoring with Prometheus and Grafana-- Set up automated backups for your SQLite database+- Set up automated backups for your PostgreSQL database- Implement horizontal pod autoscaling for high availability\ No newline at end of filediff --git a/apps/docs/content/docs/deployments/nginx.mdx b/apps/docs/content/docs/deployments/nginx.mdxindex 7092aea47..fc167e4aa 100644--- a/apps/docs/content/docs/deployments/nginx.mdx+++ b/apps/docs/content/docs/deployments/nginx.mdx@@ -19,16 +19,26 @@ Create a `compose.yml` file with the following content:```yamlservices:+ postgres:+ image: postgres:16-alpine+ environment:+ POSTGRES_DB: kaneo+ POSTGRES_USER: kaneo_user+ POSTGRES_PASSWORD: kaneo_password+ volumes:+ - postgres_data:/var/lib/postgresql/data+ restart: unless-stopped+backend:image: ghcr.io/usekaneo/api:latestenvironment:JWT_ACCESS: "your_secure_jwt_token"- DB_PATH: "/app/apps/api/data/kaneo.db"+ DATABASE_URL: "postgresql://kaneo_user:kaneo_password@postgres:5432/kaneo"ports:- "1337:1337"+ depends_on:+ - postgresrestart: unless-stopped- volumes:- - sqlite_data:/app/apps/api/datafrontend:image: ghcr.io/usekaneo/web:latest@@ -36,10 +46,12 @@ services:KANEO_API_URL: "http://localhost:1337"ports:- "5173:5173"+ depends_on:+ - backendrestart: unless-stoppedvolumes:- sqlite_data:+ postgres_data:```<Step>@@ -124,16 +136,26 @@ Create a `compose.yml` file with the following content:```yamlservices:+ postgres:+ image: postgres:16-alpine+ environment:+ POSTGRES_DB: kaneo+ POSTGRES_USER: kaneo_user+ POSTGRES_PASSWORD: kaneo_password+ volumes:+ - postgres_data:/var/lib/postgresql/data+ restart: unless-stopped+backend:image: ghcr.io/usekaneo/api:latestenvironment:JWT_ACCESS: "your_secure_jwt_token"- DB_PATH: "/app/apps/api/data/kaneo.db"+ DATABASE_URL: "postgresql://kaneo_user:kaneo_password@postgres:5432/kaneo"ports:- "1337:1337"+ depends_on:+ - postgresrestart: unless-stopped- volumes:- - sqlite_data:/app/apps/api/datafrontend:image: ghcr.io/usekaneo/web:latest@@ -141,10 +163,12 @@ services:KANEO_API_URL: "http://your-domain.com/api"ports:- "5173:5173"+ depends_on:+ - backendrestart: unless-stoppedvolumes:- sqlite_data:+ postgres_data:```<Step>@@ -209,6 +233,6 @@ Configure your DNS settings to point `your-domain.com` to your server's IP addre</Step><Step>-You should now be able to access Kaneo at `http://your-domain.com` and the API will be accessible at `http://your-domain.com/api`. 🎉+You should now be able to access Kaneo at `http://your-domain.com` and the API will be accessible at `http://your-domain.com/api`. ��</Step></Steps>diff --git a/apps/docs/content/docs/deployments/traefik.mdx b/apps/docs/content/docs/deployments/traefik.mdxindex 8ab018453..fa6c0c0de 100644--- a/apps/docs/content/docs/deployments/traefik.mdx+++ b/apps/docs/content/docs/deployments/traefik.mdx@@ -32,18 +32,30 @@ services:networks:- traefik-net+ postgres:+ image: postgres:16-alpine+ environment:+ POSTGRES_DB: kaneo+ POSTGRES_USER: kaneo_user+ POSTGRES_PASSWORD: kaneo_password+ volumes:+ - postgres_data:/var/lib/postgresql/data+ networks:+ - traefik-net+ restart: unless-stopped+backend:image: ghcr.io/usekaneo/api:latestenvironment:JWT_ACCESS: "your_secure_jwt_token"- DB_PATH: "/app/apps/api/data/kaneo.db"- volumes:- - sqlite_data:/app/apps/api/data+ DATABASE_URL: "postgresql://kaneo_user:kaneo_password@postgres:5432/kaneo"labels:- "traefik.enable=true"- "traefik.http.routers.backend.rule=Host(`api.your-domain.com`)"- "traefik.http.routers.backend.entrypoints=web"- "traefik.http.services.backend.loadbalancer.server.port=1337"+ depends_on:+ - postgresnetworks:- traefik-netrestart: unless-stopped@@ -57,6 +69,8 @@ services:- "traefik.http.routers.frontend.rule=Host(`your-domain.com`)"- "traefik.http.routers.frontend.entrypoints=web"- "traefik.http.services.frontend.loadbalancer.server.port=80"+ depends_on:+ - backendnetworks:- traefik-netrestart: unless-stopped@@ -66,7 +80,7 @@ networks:driver: bridgevolumes:- sqlite_data:+ postgres_data:```<Step>@@ -110,13 +124,23 @@ services:networks:- traefik-net+ postgres:+ image: postgres:16-alpine+ environment:+ POSTGRES_DB: kaneo+ POSTGRES_USER: kaneo_user+ POSTGRES_PASSWORD: kaneo_password+ volumes:+ - postgres_data:/var/lib/postgresql/data+ networks:+ - traefik-net+ restart: unless-stopped+backend:image: ghcr.io/usekaneo/api:latestenvironment:JWT_ACCESS: "your_secure_jwt_token"- DB_PATH: "/app/apps/api/data/kaneo.db"- volumes:- - sqlite_data:/app/apps/api/data+ DATABASE_URL: "postgresql://kaneo_user:kaneo_password@postgres:5432/kaneo"labels:- "traefik.enable=true"- "traefik.http.routers.backend.rule=Host(`your-domain.com`) && PathPrefix(`/api`)"@@ -124,6 +148,8 @@ services:- "traefik.http.middlewares.backend-stripprefix.stripprefix.prefixes=/api"- "traefik.http.routers.backend.middlewares=backend-stripprefix"- "traefik.http.services.backend.loadbalancer.server.port=1337"+ depends_on:+ - postgresnetworks:- traefik-netrestart: unless-stopped@@ -137,6 +163,8 @@ services:- "traefik.http.routers.frontend.rule=Host(`your-domain.com`)"- "traefik.http.routers.frontend.entrypoints=web"- "traefik.http.services.frontend.loadbalancer.server.port=80"+ depends_on:+ - backendnetworks:- traefik-netrestart: unless-stopped@@ -146,7 +174,7 @@ networks:driver: bridgevolumes:- sqlite_data:+ postgres_data:```<Step>diff --git a/apps/docs/content/docs/index.mdx b/apps/docs/content/docs/index.mdxindex b1e39b5d0..3d8cb115b 100644--- a/apps/docs/content/docs/index.mdx+++ b/apps/docs/content/docs/index.mdx@@ -1,44 +1,56 @@----title: Quick Start-description: Get started with Kaneo in minutes+title: Quick Start Guide+description: Get started with Kaneo in minutes. Learn how to deploy the open source project management platform using Docker Compose, configure PostgreSQL, and set up your first project.icon: Rocket---import { Step, Steps } from 'fumadocs-ui/components/steps';-Kaneo is an open source project management platform focused on simplicity and efficiency. This guide will help you get up and running quickly.+# Quick Start Guide-<iframe- width="100%"- height="400"- src="https://www.youtube.com/embed/W2DwLtwH3k4"- title="Kaneo Quick Start Guide"- frameBorder="0"- allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"- allowFullScreen-></iframe>+Kaneo is an open source project management platform focused on simplicity and efficiency. This comprehensive guide will help you get up and running quickly with a production-ready setup.-### Docker Compose Installation+## Why Choose Kaneo?-The easiest way to get started with Kaneo is using Docker Compose:+- **🚀 Fast Setup**: Get running in under 5 minutes with Docker Compose+- **🔒 Self-Hosted**: Your data stays on your infrastructure+- **🛠️ Customizable**: Open source and built for extensibility+- **📊 PostgreSQL**: Reliable database with proper data integrity+- **🔧 Production Ready**: Built with Docker, Kubernetes, and modern DevOps practices++## Docker Compose Installation++The easiest way to get started with Kaneo is using Docker Compose. This setup includes PostgreSQL for reliable data storage:<Steps><Step>+**Create your Docker Compose configuration**+Create a `compose.yml` file with the following content:</Step>```yamlservices:+ postgres:+ image: postgres:16-alpine+ environment:+ POSTGRES_DB: kaneo+ POSTGRES_USER: kaneo_user+ POSTGRES_PASSWORD: kaneo_password+ volumes:+ - postgres_data:/var/lib/postgresql/data+ restart: unless-stopped+backend:image: ghcr.io/usekaneo/api:latestenvironment:JWT_ACCESS: "your_secure_jwt_token"- DB_PATH: "/app/apps/api/data/kaneo.db"+ DATABASE_URL: "postgresql://kaneo_user:kaneo_password@postgres:5432/kaneo"ports:- 1337:1337+ depends_on:+ - postgresrestart: unless-stopped- volumes:- - sqlite_data:/app/apps/api/datafrontend:image: ghcr.io/usekaneo/web:latest@@ -46,38 +58,112 @@ services:KANEO_API_URL: "http://localhost:1337"ports:- 5173:5173+ depends_on:+ - backendrestart: unless-stoppedvolumes:- sqlite_data:+ postgres_data:```<Step>-Run `docker compose up -d` to start the services.+**Start the services**++Run the following command to start all services:++```bash+docker compose up -d+```++This will download the images and start the containers in the background.</Step><Step>+**Access your Kaneo instance**+Open [http://localhost:5173](http://localhost:5173) in your browser.</Step><Step>+**Create your first project**+Create your first project and start managing your tasks! 🎉++You'll be able to:+- Create projects and organize tasks+- Assign team members and set priorities+- Track progress with kanban boards+- Collaborate with your team in real-time</Step></Steps>-## Environment Variables+## Environment Variables Reference++| Variable | Description | Required | Default |+| -------- | ----------- | -------- | ------- |+| `KANEO_API_URL` | The URL where the API is accessible | Yes | - |+| `JWT_ACCESS` | Secret key for generating JWT tokens | Yes | - |+| `DATABASE_URL` | PostgreSQL connection string | Yes | - |+| `DISABLE_REGISTRATION` | Enable/disable new user registration | No | `false` |-| Variable | Description |-| -------- | ----------- |-| `KANEO_API_URL` | The URL of the API |-| `JWT_ACCESS` | Secret key for generating JWT tokens |-| `DB_PATH` | The path to the database file |-| `DISABLE_REGISTRATION` | Enable/disable new user registration (default: false) |+## Database Setup++Kaneo uses PostgreSQL for reliable data storage with proper relational integrity. The Docker Compose setup above handles this automatically, but if you're running Kaneo outside of Docker, you'll need to:++### Manual PostgreSQL Setup++1. **Install PostgreSQL** (version 12 or higher)+ ```bash+ # Ubuntu/Debian+ sudo apt install postgresql postgresql-contrib++ # macOS with Homebrew+ brew install postgresql+ ```++2. **Create a database and user:**+ ```sql+ CREATE DATABASE kaneo;+ CREATE USER kaneo_user WITH PASSWORD 'your_password';+ GRANT ALL PRIVILEGES ON DATABASE kaneo TO kaneo_user;+ ```++3. **Set the DATABASE_URL environment variable:**+ ```bash+ export DATABASE_URL="postgresql://kaneo_user:your_password@localhost:5432/kaneo"+ ```++## Security Considerations++For production deployments, make sure to:++- **Change default passwords**: Use strong, unique passwords for JWT_ACCESS and database credentials+- **Use HTTPS**: Deploy behind a reverse proxy with SSL/TLS certificates+- **Regular backups**: Set up automated database backups+- **Update regularly**: Keep your Kaneo installation up to date++## Migration from SQLite++If you're upgrading from a previous version that used SQLite, you'll need to migrate your data to PostgreSQL. We recommend:++1. **Export your data** from the old SQLite database+2. **Set up PostgreSQL** using the new Docker Compose configuration+3. **Import your data** into the new PostgreSQL database++Contact us on [Discord](https://discord.gg/rU4tSyhXXU) if you need help with the migration process.## Next Steps-- [Deploy with Nginx](/docs/deployments/nginx)-- [Deploy with Traefik](/docs/deployments/traefik)-- [Kubernetes Deployment](/docs/deployments/kubernetes)-- [Core Concepts](/docs/concepts/overview)\ No newline at end of file+Now that you have Kaneo running, explore these deployment options for production:++- **[Deploy with Nginx](/docs/deployments/nginx)** - Set up a reverse proxy with SSL+- **[Deploy with Traefik](/docs/deployments/traefik)** - Modern reverse proxy with automatic HTTPS+- **[Kubernetes Deployment](/docs/deployments/kubernetes)** - Scalable container orchestration+- **[Core Concepts](/docs/concepts/overview)** - Learn about Kaneo's architecture and features++## Getting Help++- **[GitHub Issues](https://github.com/usekaneo/kaneo/issues)** - Report bugs or request features+- **[Discord Community](https://discord.gg/rU4tSyhXXU)** - Get help from the community+- **[Documentation](/docs)** - Browse the complete documentation\ No newline at end of filediff --git a/apps/web/src/components/common/sidebar/sections/projects/index.tsx b/apps/web/src/components/common/sidebar/sections/projects/index.tsxindex 1fc6151cb..d46d86310 100644--- a/apps/web/src/components/common/sidebar/sections/projects/index.tsx+++ b/apps/web/src/components/common/sidebar/sections/projects/index.tsx@@ -107,6 +107,7 @@ function Projects({ workspaceId }: ProjectsProps) {columns: project.columns,archivedTasks: project.archivedTasks,plannedTasks: project.plannedTasks,+ isPublic: project.isPublic,})}className={cn(@@ -140,6 +141,7 @@ function Projects({ workspaceId }: ProjectsProps) {columns: project.columns,archivedTasks: project.archivedTasks,plannedTasks: project.plannedTasks,+ isPublic: project.isPublic,})}className={cn(diff --git a/apps/web/src/components/public-project/copy-url-button.tsx b/apps/web/src/components/public-project/copy-url-button.tsxnew file mode 100644index 000000000..e0b05949d--- /dev/null+++ b/apps/web/src/components/public-project/copy-url-button.tsx@@ -0,0 +1,38 @@+import { Button } from "@/components/ui/button";+import { Check, Copy } from "lucide-react";+import { useState } from "react";++export function CopyUrlButton() {+ const [copied, setCopied] = useState(false);++ const handleCopyUrl = async () => {+ try {+ await navigator.clipboard.writeText(window.location.href);+ setCopied(true);+ setTimeout(() => setCopied(false), 2000);+ } catch (error) {+ console.error("Failed to copy URL:", error);+ }+ };++ return (+ <Button+ variant="outline"+ size="sm"+ onClick={handleCopyUrl}+ className="gap-2"+ >+ {copied ? (+ <>+ <Check className="w-4 h-4" />+ Copied+ </>+ ) : (+ <>+ <Copy className="w-4 h-4" />+ Copy URL+ </>+ )}+ </Button>+ );+}diff --git a/apps/web/src/components/public-project/error-view.tsx b/apps/web/src/components/public-project/error-view.tsxnew file mode 100644index 000000000..d3b412970--- /dev/null+++ b/apps/web/src/components/public-project/error-view.tsx@@ -0,0 +1,25 @@+import { ExternalLink } from "lucide-react";+import { KaneoBranding } from "./kaneo-branding";++export function ErrorView() {+ return (+ <div className="min-h-screen bg-zinc-50 dark:bg-zinc-900 flex flex-col w-full">+ <div className="flex-1 flex items-center justify-center">+ <div className="text-center space-y-6">+ <div className="w-20 h-20 rounded-full bg-red-100 dark:bg-red-900/30 flex items-center justify-center mx-auto">+ <ExternalLink className="w-10 h-10 text-red-600 dark:text-red-400" />+ </div>+ <div className="space-y-2">+ <h1 className="text-3xl font-bold text-zinc-900 dark:text-zinc-100">+ Project Not Found+ </h1>+ <p className="text-zinc-600 dark:text-zinc-400 max-w-md mx-auto">+ This project doesn't exist or is not publicly accessible.+ </p>+ </div>+ <KaneoBranding />+ </div>+ </div>+ </div>+ );+}diff --git a/apps/web/src/components/public-project/kanban-view.tsx b/apps/web/src/components/public-project/kanban-view.tsxnew file mode 100644index 000000000..3abdf0a5c--- /dev/null+++ b/apps/web/src/components/public-project/kanban-view.tsx@@ -0,0 +1,72 @@+import { DEFAULT_COLUMNS } from "@/constants/columns";+import type { ProjectWithTasks } from "@/types/project";+import type Task from "@/types/task";+import type { LucideIcon } from "lucide-react";+import { PublicTaskCard } from "./task-card";++interface Column {+ id: string;+ name: string;+ icon: LucideIcon;+ tasks: Task[];+}++interface PublicKanbanViewProps {+ project: ProjectWithTasks;+}++export function PublicKanbanView({ project }: PublicKanbanViewProps) {+ const columns: Column[] = DEFAULT_COLUMNS.map((column) => ({+ ...column,+ tasks: project.columns?.find((col) => col.id === column.id)?.tasks || [],+ }));++ return (+ <div className="flex-1 min-h-0 overflow-hidden">+ <div className="h-full overflow-x-auto overflow-y-hidden">+ <div className="flex gap-6 p-6 h-full min-w-max">+ {columns.map((column) => {+ const IconComponent = column.icon;+ return (+ <div+ key={column.id}+ className="w-80 flex flex-col bg-zinc-50 dark:bg-zinc-900/50 rounded-xl border border-zinc-200 dark:border-zinc-700/50 overflow-hidden flex-1"+ >+ <div className="px-4 py-3 bg-white dark:bg-zinc-800/50 border-b border-zinc-200 dark:border-zinc-700/50">+ <div className="flex items-center gap-2">+ <IconComponent className="w-4 h-4 text-zinc-500 dark:text-zinc-400" />+ <h3 className="font-semibold text-zinc-900 dark:text-zinc-100">+ {column.name}+ </h3>+ <span className="text-sm text-zinc-500 dark:text-zinc-400 bg-zinc-200 dark:bg-zinc-700 px-2 py-0.5 rounded-full font-medium">+ {column.tasks.length}+ </span>+ </div>+ </div>++ <div className="flex-1 p-3 space-y-3 overflow-y-auto min-h-0">+ {column.tasks.map((task) => (+ <PublicTaskCard+ key={task.id}+ task={task}+ projectSlug={project.slug}+ />+ ))}++ {column.tasks.length === 0 && (+ <div className="text-center text-sm text-zinc-500 dark:text-zinc-400 py-12 px-4">+ <div className="w-8 h-8 rounded-full bg-zinc-100 dark:bg-zinc-800 flex items-center justify-center mx-auto mb-2">+ <IconComponent className="w-4 h-4" />+ </div>+ No tasks in {column.name.toLowerCase()}+ </div>+ )}+ </div>+ </div>+ );+ })}+ </div>+ </div>+ </div>+ );+}diff --git a/apps/web/src/components/public-project/kaneo-branding.tsx b/apps/web/src/components/public-project/kaneo-branding.tsxnew file mode 100644index 000000000..37ffba384--- /dev/null+++ b/apps/web/src/components/public-project/kaneo-branding.tsx@@ -0,0 +1,15 @@+import { ArrowRight, Star } from "lucide-react";++export function KaneoBranding() {+ return (+ <div className="flex items-center gap-2 text-sm text-zinc-500 dark:text-zinc-400">+ <span>Powered by</span>+ <div className="flex items-center gap-1 font-semibold text-indigo-600 dark:text-indigo-400">+ <Star className="w-4 h-4" />+ <span>Kaneo</span>+ </div>+ <ArrowRight className="w-3 h-3" />+ <span className="text-xs">Project Management Made Simple</span>+ </div>+ );+}diff --git a/apps/web/src/components/public-project/list-view.tsx b/apps/web/src/components/public-project/list-view.tsxnew file mode 100644index 000000000..af71de70e--- /dev/null+++ b/apps/web/src/components/public-project/list-view.tsx@@ -0,0 +1,65 @@+import { DEFAULT_COLUMNS } from "@/constants/columns";+import type { ProjectWithTasks } from "@/types/project";+import type Task from "@/types/task";+import type { LucideIcon } from "lucide-react";+import { PublicTaskRow } from "./task-row";++interface Column {+ id: string;+ name: string;+ icon: LucideIcon;+ tasks: Task[];+}++interface PublicListViewProps {+ project: ProjectWithTasks;+}++export function PublicListView({ project }: PublicListViewProps) {+ const columns: Column[] = DEFAULT_COLUMNS.map((column) => ({+ ...column,+ tasks: project.columns?.find((col) => col.id === column.id)?.tasks || [],+ }));++ return (+ <div className="flex-1 min-h-0 overflow-y-auto">+ <div className="p-6 space-y-8 max-w-5xl mx-auto">+ {columns.map((column) => {+ const IconComponent = column.icon;+ return (+ <div key={column.id} className="space-y-4">+ <div className="flex items-center gap-3 px-2">+ <IconComponent className="w-5 h-5 text-zinc-500 dark:text-zinc-400" />+ <h3 className="font-semibold text-lg text-zinc-900 dark:text-zinc-100">+ {column.name}+ </h3>+ <span className="text-sm text-zinc-500 dark:text-zinc-400 bg-zinc-200 dark:bg-zinc-700 px-3 py-1 rounded-full font-medium">+ {column.tasks.length}+ </span>+ </div>++ <div className="space-y-3">+ {column.tasks.map((task) => (+ <PublicTaskRow+ key={task.id}+ task={task}+ projectSlug={project.slug}+ />+ ))}++ {column.tasks.length === 0 && (+ <div className="text-center text-sm text-zinc-500 dark:text-zinc-400 py-8 bg-zinc-50 dark:bg-zinc-900/50 rounded-lg border border-dashed border-zinc-300 dark:border-zinc-700">+ <div className="w-8 h-8 rounded-full bg-zinc-100 dark:bg-zinc-800 flex items-center justify-center mx-auto mb-2">+ <IconComponent className="w-4 h-4" />+ </div>+ No tasks in {column.name.toLowerCase()}+ </div>+ )}+ </div>+ </div>+ );+ })}+ </div>+ </div>+ );+}diff --git a/apps/web/src/components/public-project/loading-skeleton.tsx b/apps/web/src/components/public-project/loading-skeleton.tsxnew file mode 100644index 000000000..cd4e11f44--- /dev/null+++ b/apps/web/src/components/public-project/loading-skeleton.tsx@@ -0,0 +1,33 @@+export function LoadingSkeleton() {+ return (+ <div className="min-h-screen bg-zinc-50 dark:bg-zinc-900 flex flex-col w-full">+ <div className="flex-1 flex items-center justify-center">+ <div className="container mx-auto px-4 py-8">+ <div className="animate-pulse space-y-8 max-w-6xl mx-auto">+ <div className="text-center space-y-4">+ <div className="h-8 bg-zinc-200 dark:bg-zinc-800 rounded-md w-64 mx-auto" />+ <div className="h-4 bg-zinc-200 dark:bg-zinc-800 rounded-md w-96 mx-auto" />+ </div>+ <div className="grid grid-cols-1 md:grid-cols-4 gap-6">+ {["skeleton-1", "skeleton-2", "skeleton-3", "skeleton-4"].map(+ (skeletonId) => (+ <div key={skeletonId} className="space-y-3">+ <div className="h-6 bg-zinc-200 dark:bg-zinc-800 rounded-md" />+ <div className="space-y-2">+ {["task-1", "task-2", "task-3"].map((taskId) => (+ <div+ key={`${skeletonId}-${taskId}`}+ className="h-24 bg-zinc-200 dark:bg-zinc-800 rounded-lg"+ />+ ))}+ </div>+ </div>+ ),+ )}+ </div>+ </div>+ </div>+ </div>+ </div>+ );+}diff --git a/apps/web/src/components/public-project/task-card.tsx b/apps/web/src/components/public-project/task-card.tsxnew file mode 100644index 000000000..7e2b52a55--- /dev/null+++ b/apps/web/src/components/public-project/task-card.tsx@@ -0,0 +1,69 @@+import { Avatar, AvatarFallback } from "@/components/ui/avatar";+import { priorityColorsTaskCard } from "@/constants/priority-colors";+import { cn } from "@/lib/cn";+import type Task from "@/types/task";+import { format } from "date-fns";+import { Flag } from "lucide-react";++interface PublicTaskCardProps {+ task: Task;+ projectSlug: string;+}++export function PublicTaskCard({ task, projectSlug }: PublicTaskCardProps) {+ return (+ <div className="p-4 bg-white dark:bg-zinc-800/80 rounded-lg border border-zinc-200 dark:border-zinc-700/50 shadow-sm hover:shadow-md transition-shadow">+ <div className="space-y-3">+ <div className="flex items-start justify-between gap-2">+ <div className="space-y-1 flex-1 min-w-0">+ <div className="text-xs font-mono text-zinc-500 dark:text-zinc-400">+ {projectSlug}-{task.number}+ </div>+ <h3 className="text-sm font-medium text-zinc-900 dark:text-zinc-100 line-clamp-2 leading-relaxed">+ {task.title}+ </h3>+ </div>+ </div>++ {task.description && (+ <p className="text-xs text-zinc-600 dark:text-zinc-400 line-clamp-3 leading-relaxed">+ {task.description}+ </p>+ )}++ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ {task.priority && (+ <div+ className={cn(+ "flex items-center gap-1 text-xs px-2 py-1 rounded-full font-medium",+ priorityColorsTaskCard[+ task.priority as keyof typeof priorityColorsTaskCard+ ],+ )}+ >+ <Flag className="w-3 h-3" />+ <span className="capitalize">{task.priority}</span>+ </div>+ )}+ </div>++ <div className="flex items-center gap-2">+ {task.userEmail && (+ <Avatar className="h-6 w-6 ring-2 ring-zinc-100 dark:ring-zinc-700">+ <AvatarFallback className="text-xs font-medium">+ {task.userEmail.charAt(0).toUpperCase()}+ </AvatarFallback>+ </Avatar>+ )}+ {task.dueDate && (+ <div className="text-xs text-zinc-500 dark:text-zinc-400 font-medium">+ {format(new Date(task.dueDate), "MMM d")}+ </div>+ )}+ </div>+ </div>+ </div>+ </div>+ );+}diff --git a/apps/web/src/components/public-project/task-row.tsx b/apps/web/src/components/public-project/task-row.tsxnew file mode 100644index 000000000..0b9102a3a--- /dev/null+++ b/apps/web/src/components/public-project/task-row.tsx@@ -0,0 +1,56 @@+import { Avatar, AvatarFallback } from "@/components/ui/avatar";+import { priorityColorsTaskCard } from "@/constants/priority-colors";+import { cn } from "@/lib/cn";+import type Task from "@/types/task";+import { format } from "date-fns";+import { Flag } from "lucide-react";++interface PublicTaskRowProps {+ task: Task;+ projectSlug: string;+}++export function PublicTaskRow({ task, projectSlug }: PublicTaskRowProps) {+ return (+ <div className="group px-4 py-3 rounded-lg flex items-center gap-4 bg-white dark:bg-zinc-800/80 border border-zinc-200 dark:border-zinc-700/50 shadow-sm hover:shadow-md transition-all hover:border-zinc-300 dark:hover:border-zinc-600">+ <div className="flex-1 min-w-0 flex items-center gap-3">+ <div className="text-xs font-mono text-zinc-500 dark:text-zinc-400 shrink-0 font-medium">+ {projectSlug}-{task.number}+ </div>+ <h3 className="text-sm font-medium text-zinc-900 dark:text-zinc-100 truncate">+ {task.title}+ </h3>+ </div>++ <div className="flex items-center gap-3">+ {task.userEmail && (+ <Avatar className="h-6 w-6 ring-2 ring-zinc-100 dark:ring-zinc-700">+ <AvatarFallback className="text-xs font-medium">+ {task.userEmail.charAt(0).toUpperCase()}+ </AvatarFallback>+ </Avatar>+ )}++ {task.dueDate && (+ <div className="text-xs text-zinc-500 dark:text-zinc-400 font-medium">+ {format(new Date(task.dueDate), "MMM d")}+ </div>+ )}++ {task.priority && (+ <div+ className={cn(+ "flex items-center gap-1 text-xs px-2 py-1 rounded-full font-medium",+ priorityColorsTaskCard[+ task.priority as keyof typeof priorityColorsTaskCard+ ],+ )}+ >+ <Flag className="w-3 h-3" />+ <span className="capitalize">{task.priority}</span>+ </div>+ )}+ </div>+ </div>+ );+}diff --git a/apps/web/src/components/public-project/theme-toggle.tsx b/apps/web/src/components/public-project/theme-toggle.tsxnew file mode 100644index 000000000..299c2b720--- /dev/null+++ b/apps/web/src/components/public-project/theme-toggle.tsx@@ -0,0 +1,33 @@+import { Button } from "@/components/ui/button";+import { Moon, Sun } from "lucide-react";+import { useEffect, useState } from "react";++export function ThemeToggle() {+ const [isDark, setIsDark] = useState(false);++ useEffect(() => {+ const savedTheme = localStorage.getItem("theme");+ const systemPrefersDark = window.matchMedia(+ "(prefers-color-scheme: dark)",+ ).matches;+ const shouldBeDark =+ savedTheme === "dark" || (!savedTheme && systemPrefersDark);++ setIsDark(shouldBeDark);+ document.documentElement.classList.toggle("dark", shouldBeDark);+ }, []);++ const toggleTheme = () => {+ const newTheme = !isDark;+ setIsDark(newTheme);+ localStorage.setItem("theme", newTheme ? "dark" : "light");+ document.documentElement.classList.toggle("dark", newTheme);+ };++ return (+ <Button variant="outline" size="sm" onClick={toggleTheme} className="gap-2">+ {isDark ? <Sun className="w-4 h-4" /> : <Moon className="w-4 h-4" />}+ {isDark ? "Light" : "Dark"}+ </Button>+ );+}diff --git a/apps/web/src/constants/columns.ts b/apps/web/src/constants/columns.tsnew file mode 100644index 000000000..26bdcb07a--- /dev/null+++ b/apps/web/src/constants/columns.ts@@ -0,0 +1,8 @@+import { AlertCircle, CheckCircle2, Circle, Clock } from "lucide-react";++export const DEFAULT_COLUMNS = [+ { id: "to-do", name: "To Do", icon: Circle },+ { id: "in-progress", name: "In Progress", icon: Clock },+ { id: "in-review", name: "In Review", icon: AlertCircle },+ { id: "done", name: "Done", icon: CheckCircle2 },+] as const;diff --git a/apps/web/src/fetchers/project/get-public-project.ts b/apps/web/src/fetchers/project/get-public-project.tsnew file mode 100644index 000000000..11ba7dd7b--- /dev/null+++ b/apps/web/src/fetchers/project/get-public-project.ts@@ -0,0 +1,23 @@+import { client } from "@kaneo/libs";+import type { InferRequestType } from "hono/client";++export type GetPublicProjectRequest = InferRequestType<+ (typeof client)["public-project"][":id"]["$get"]+>["param"];++async function getPublicProject({ id }: GetPublicProjectRequest) {+ const response = await client["public-project"][":id"].$get({+ param: { id },+ });++ if (!response.ok) {+ const error = await response.text();+ throw new Error(error);+ }++ const data = await response.json();++ return data;+}++export default getPublicProject;diff --git a/apps/web/src/fetchers/project/update-project.ts b/apps/web/src/fetchers/project/update-project.tsindex 0d8735743..0e57921d1 100644--- a/apps/web/src/fetchers/project/update-project.ts+++ b/apps/web/src/fetchers/project/update-project.ts@@ -12,10 +12,11 @@ async function updateProject({icon,slug,description,+ isPublic,}: UpdateProjectRequest) {const response = await client.project[":id"].$put({param: { id },- json: { name, icon, slug, description },+ json: { name, icon, slug, description, isPublic },});if (!response.ok) {diff --git a/apps/web/src/hooks/queries/project/use-get-public-project.ts b/apps/web/src/hooks/queries/project/use-get-public-project.tsnew file mode 100644index 000000000..18418724f--- /dev/null+++ b/apps/web/src/hooks/queries/project/use-get-public-project.ts@@ -0,0 +1,11 @@+import getPublicProject from "@/fetchers/project/get-public-project";+import { useQuery } from "@tanstack/react-query";++function useGetPublicProject(id: string) {+ return useQuery({+ queryKey: ["public-project", id],+ queryFn: () => getPublicProject({ id }),+ });+}++export default useGetPublicProject;diff --git a/apps/web/src/routeTree.gen.ts b/apps/web/src/routeTree.gen.tsindex cc122f4a3..824ffda69 100644--- a/apps/web/src/routeTree.gen.ts+++ b/apps/web/src/routeTree.gen.ts@@ -13,6 +13,7 @@ import { createFileRoute } from '@tanstack/react-router'import { Route as rootRouteImport } from './routes/__root'import { Route as DashboardRouteImport } from './routes/dashboard'import { Route as IndexRouteImport } from './routes/index'+import { Route as PublicProjectProjectIdRouteImport } from './routes/public-project.$projectId'import { Route as DashboardSettingsRouteImport } from './routes/dashboard/settings'import { Route as AuthSignUpRouteImport } from './routes/auth/sign-up'import { Route as AuthSignInRouteImport } from './routes/auth/sign-in'@@ -42,6 +43,11 @@ const IndexRoute = IndexRouteImport.update({path: '/',getParentRoute: () => rootRouteImport,} as any)+const PublicProjectProjectIdRoute = PublicProjectProjectIdRouteImport.update({+ id: '/public-project/$projectId',+ path: '/public-project/$projectId',+ getParentRoute: () => rootRouteImport,+} as any)const DashboardSettingsRoute = DashboardSettingsRouteImport.update({id: '/settings',path: '/settings',@@ -135,6 +141,7 @@ export interface FileRoutesByFullPath {'/auth/sign-in': typeof AuthSignInRoute'/auth/sign-up': typeof AuthSignUpRoute'/dashboard/settings': typeof DashboardSettingsRouteWithChildren+ '/public-project/$projectId': typeof PublicProjectProjectIdRoute'/dashboard/settings/appearance': typeof DashboardSettingsAppearanceRoute'/dashboard/workspace/$workspaceId': typeof DashboardWorkspaceWorkspaceIdRouteWithChildren'/dashboard/teams/$workspaceId': typeof DashboardTeamsWorkspaceIdLayoutRouteWithChildren@@ -153,6 +160,7 @@ export interface FileRoutesByTo {'/auth/sign-in': typeof AuthSignInRoute'/auth/sign-up': typeof AuthSignUpRoute'/dashboard/settings': typeof DashboardSettingsRouteWithChildren+ '/public-project/$projectId': typeof PublicProjectProjectIdRoute'/dashboard/settings/appearance': typeof DashboardSettingsAppearanceRoute'/dashboard/workspace/$workspaceId': typeof DashboardWorkspaceWorkspaceIdRouteWithChildren'/dashboard/teams/$workspaceId': typeof DashboardTeamsWorkspaceIdLayoutRouteWithChildren@@ -172,6 +180,7 @@ export interface FileRoutesById {'/auth/sign-in': typeof AuthSignInRoute'/auth/sign-up': typeof AuthSignUpRoute'/dashboard/settings': typeof DashboardSettingsRouteWithChildren+ '/public-project/$projectId': typeof PublicProjectProjectIdRoute'/dashboard/settings/appearance': typeof DashboardSettingsAppearanceRoute'/dashboard/workspace/$workspaceId': typeof DashboardWorkspaceWorkspaceIdRouteWithChildren'/dashboard/teams/$workspaceId': typeof DashboardTeamsWorkspaceIdRouteWithChildren@@ -193,6 +202,7 @@ export interface FileRouteTypes {| '/auth/sign-in'| '/auth/sign-up'| '/dashboard/settings'+ | '/public-project/$projectId'| '/dashboard/settings/appearance'| '/dashboard/workspace/$workspaceId'| '/dashboard/teams/$workspaceId'@@ -211,6 +221,7 @@ export interface FileRouteTypes {| '/auth/sign-in'| '/auth/sign-up'| '/dashboard/settings'+ | '/public-project/$projectId'| '/dashboard/settings/appearance'| '/dashboard/workspace/$workspaceId'| '/dashboard/teams/$workspaceId'@@ -229,6 +240,7 @@ export interface FileRouteTypes {| '/auth/sign-in'| '/auth/sign-up'| '/dashboard/settings'+ | '/public-project/$projectId'| '/dashboard/settings/appearance'| '/dashboard/workspace/$workspaceId'| '/dashboard/teams/$workspaceId'@@ -248,6 +260,7 @@ export interface RootRouteChildren {DashboardRoute: typeof DashboardRouteWithChildrenAuthSignInRoute: typeof AuthSignInRouteAuthSignUpRoute: typeof AuthSignUpRoute+ PublicProjectProjectIdRoute: typeof PublicProjectProjectIdRoute}declare module '@tanstack/react-router' {@@ -266,6 +279,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof IndexRouteImportparentRoute: typeof rootRouteImport}+ '/public-project/$projectId': {+ id: '/public-project/$projectId'+ path: '/public-project/$projectId'+ fullPath: '/public-project/$projectId'+ preLoaderRoute: typeof PublicProjectProjectIdRouteImport+ parentRoute: typeof rootRouteImport+ }'/dashboard/settings': {id: '/dashboard/settings'path: '/settings'@@ -482,6 +502,7 @@ const rootRouteChildren: RootRouteChildren = {DashboardRoute: DashboardRouteWithChildren,AuthSignInRoute: AuthSignInRoute,AuthSignUpRoute: AuthSignUpRoute,+ PublicProjectProjectIdRoute: PublicProjectProjectIdRoute,}export const routeTree = rootRouteImport._addFileChildren(rootRouteChildren)diff --git a/apps/web/src/routes/__root.tsx b/apps/web/src/routes/__root.tsxindex 44a2ca9f1..cc37ad888 100644--- a/apps/web/src/routes/__root.tsx+++ b/apps/web/src/routes/__root.tsx@@ -15,7 +15,9 @@ export const Route = createRootRouteWithContext<{}>()({component: RootComponent,async beforeLoad({ context: { user }, location }) {- const isRouteUnprotected = location.pathname.includes("auth");+ const isRouteUnprotected =+ location.pathname.includes("auth") ||+ location.pathname.includes("public-project");const isOnDashboard = location.pathname.includes("dashboard");if (user === null && !isRouteUnprotected) {diff --git a/apps/web/src/routes/dashboard/workspace/$workspaceId/project/$projectId/settings.tsx b/apps/web/src/routes/dashboard/workspace/$workspaceId/project/$projectId/settings.tsxindex 23b02e8a9..7936ac4f6 100644--- a/apps/web/src/routes/dashboard/workspace/$workspaceId/project/$projectId/settings.tsx+++ b/apps/web/src/routes/dashboard/workspace/$workspaceId/project/$projectId/settings.tsx@@ -4,12 +4,14 @@ import { Button } from "@/components/ui/button";import {Form,FormControl,+ FormDescription,FormField,FormItem,FormLabel,FormMessage,} from "@/components/ui/form";import { Input } from "@/components/ui/input";+import { Switch } from "@/components/ui/switch";import icons from "@/constants/project-icons";import useDeleteProject from "@/hooks/mutations/project/use-delete-project";import useUpdateProject from "@/hooks/mutations/project/use-update-project";@@ -20,7 +22,7 @@ import useProjectStore from "@/store/project";import { zodResolver } from "@hookform/resolvers/zod";import { useQueryClient } from "@tanstack/react-query";import { createFileRoute, useNavigate } from "@tanstack/react-router";-import { AlertTriangle, ArrowLeft, Lock } from "lucide-react";+import { AlertTriangle, ArrowLeft, Check, Copy, Lock } from "lucide-react";import { createElement, useEffect, useState } from "react";import { useForm } from "react-hook-form";import { toast } from "sonner";@@ -30,6 +32,7 @@ const projectFormSchema = z.object({name: z.string().min(1, "Project name is required"),slug: z.string().min(1, "Project slug is required"),icon: z.string().min(1, "Project icon is required"),+ isPublic: z.boolean().optional(),});type ProjectFormValues = z.infer<typeof projectFormSchema>;@@ -46,6 +49,7 @@ function ProjectSettings() {const { project, setProject } = useProjectStore();const { isOwner } = useWorkspacePermission();const [confirmProjectName, setConfirmProjectName] = useState("");+ const [copied, setCopied] = useState(false);const { mutateAsync: updateProject, isPending } = useUpdateProject();const { mutateAsync: deleteProject, isPending: isDeleting } =useDeleteProject();@@ -64,6 +68,7 @@ function ProjectSettings() {name: project?.name ?? "",slug: project?.slug ?? "",icon: project?.icon ?? "Layout",+ isPublic: project?.isPublic ?? false,},});@@ -75,6 +80,7 @@ function ProjectSettings() {icon: data.icon,slug: data.slug,description: project?.description ?? "",+ isPublic: data.isPublic ?? false,});queryClient.invalidateQueries({@@ -127,6 +133,20 @@ function ProjectSettings() {}};+ const handleCopyUrl = async () => {+ if (!project?.id) return;++ const url = `${window.location.origin}/public-project/${project.id}`;+ try {+ await navigator.clipboard.writeText(url);+ setCopied(true);+ toast.success("URL copied to clipboard");+ setTimeout(() => setCopied(false), 2000);+ } catch (error) {+ toast.error("Failed to copy URL");+ }+ };+if (!isOwner) {return (<div className="flex-1 p-6">@@ -232,6 +252,72 @@ function ProjectSettings() {)}/></div>+ <div className="grid grid-cols-1 gap-4">+ <FormField+ control={form.control}+ name="isPublic"+ render={({ field }) => (+ <FormItem className="space-y-4">+ <div className="flex items-center justify-between">+ <div className="space-y-1">+ <FormLabel className="text-base">+ Public Project+ </FormLabel>+ <FormDescription>+ Make the project visible to everyone on the+ web.+ </FormDescription>+ </div>+ <FormControl>+ <Switch+ checked={field.value}+ onCheckedChange={field.onChange}+ className="data-[state=checked]:bg-indigo-500 data-[state=unchecked]:bg-zinc-200 dark:data-[state=unchecked]:bg-zinc-700"+ />+ </FormControl>+ </div>+ <FormMessage />+ {field.value && (+ <div className="mt-4 p-4 bg-indigo-50 dark:bg-indigo-950/50 rounded-lg border border-indigo-200 dark:border-indigo-800/50">+ <p className="text-sm font-medium text-indigo-900 dark:text-indigo-100 mb-2">+ Public URL+ </p>+ <div className="flex gap-2">+ <Input+ value={`${window.location.origin}/public-project/${project?.id}`}+ readOnly+ className="bg-white dark:bg-zinc-800/50 font-mono text-sm flex-1"+ />+ <Button+ type="button"+ variant="outline"+ size="sm"+ onClick={handleCopyUrl}+ className="px-3 min-w-[80px]"+ >+ {copied ? (+ <>+ <Check className="w-4 h-4 mr-1" />+ Copied+ </>+ ) : (+ <>+ <Copy className="w-4 h-4 mr-1" />+ Copy+ </>+ )}+ </Button>+ </div>+ <p className="text-xs text-indigo-700 dark:text-indigo-300 mt-2">+ Anyone with this link can view your+ project's tasks.+ </p>+ </div>+ )}+ </FormItem>+ )}+ />+ </div><FormFieldcontrol={form.control}diff --git a/apps/web/src/routes/public-project.$projectId.tsx b/apps/web/src/routes/public-project.$projectId.tsxnew file mode 100644index 000000000..653d39ec0--- /dev/null+++ b/apps/web/src/routes/public-project.$projectId.tsx@@ -0,0 +1,116 @@+import { CopyUrlButton } from "@/components/public-project/copy-url-button";+import { ErrorView } from "@/components/public-project/error-view";+import { PublicKanbanView } from "@/components/public-project/kanban-view";+import { KaneoBranding } from "@/components/public-project/kaneo-branding";+import { PublicListView } from "@/components/public-project/list-view";+import { LoadingSkeleton } from "@/components/public-project/loading-skeleton";+import { ThemeToggle } from "@/components/public-project/theme-toggle";+import { Button } from "@/components/ui/button";+import icons from "@/constants/project-icons";+import useGetPublicProject from "@/hooks/queries/project/use-get-public-project";+import { createFileRoute } from "@tanstack/react-router";+import { Grid3X3, Layout, List } from "lucide-react";+import { createElement, useState } from "react";++export const Route = createFileRoute("/public-project/$projectId")({+ component: RouteComponent,+});++type ViewMode = "kanban" | "list";++function RouteComponent() {+ const { projectId } = Route.useParams();+ const { data: project, isLoading, error } = useGetPublicProject(projectId);+ const [viewMode, setViewMode] = useState<ViewMode>("kanban");++ if (isLoading) {+ return <LoadingSkeleton />;+ }++ if (error || !project) {+ return <ErrorView />;+ }++ return (+ <div className="min-h-screen bg-zinc-50 dark:bg-zinc-900 flex flex-col w-full">+ <header className="bg-white dark:bg-zinc-900 border-b border-zinc-200 dark:border-zinc-800 sticky top-0 z-10 backdrop-blur-sm bg-white/95 dark:bg-zinc-900/95">+ <div className="px-6 py-4">+ <div className="flex flex-col lg:flex-row lg:items-start lg:justify-between gap-4">+ <div className="space-y-3 flex-1">+ <div className="flex items-center gap-3 flex-wrap">+ <div className="w-10 h-10 rounded-xl bg-gradient-to-br from-indigo-500 to-purple-600 flex items-center justify-center shadow-lg">+ {createElement(+ icons[project.icon as keyof typeof icons] || Layout,+ {+ className: "w-6 h-6 shrink-0",+ },+ )}+ </div>+ <div className="flex items-center gap-3 flex-wrap">+ <h1 className="text-2xl font-bold text-zinc-900 dark:text-zinc-100">+ {project.name}+ </h1>+ <span className="px-3 py-1 text-sm bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-400 rounded-full font-medium border border-green-200 dark:border-green-800">+ Public View+ </span>+ </div>+ </div>+ {project.description && (+ <p className="text-zinc-600 dark:text-zinc-400 max-w-3xl leading-relaxed">+ {project.description}+ </p>+ )}+ </div>++ <div className="flex items-center gap-3 lg:flex-shrink-0">+ <CopyUrlButton />+ <ThemeToggle />+ <div className="h-6 w-px bg-zinc-200 dark:bg-zinc-700" />+ <div className="flex items-center gap-2">+ <Button+ variant={viewMode === "kanban" ? "default" : "outline"}+ size="sm"+ onClick={() => setViewMode("kanban")}+ className="gap-2"+ >+ <Grid3X3 className="w-4 h-4" />+ Board+ </Button>+ <Button+ variant={viewMode === "list" ? "default" : "outline"}+ size="sm"+ onClick={() => setViewMode("list")}+ className="gap-2"+ >+ <List className="w-4 h-4" />+ List+ </Button>+ </div>+ </div>+ </div>+ </div>+ </header>++ {/* Content */}+ <main className="flex-1 min-h-0 flex flex-col">+ {viewMode === "kanban" ? (+ <PublicKanbanView project={project} />+ ) : (+ <PublicListView project={project} />+ )}+ </main>++ {/* Footer */}+ <footer className="bg-white dark:bg-zinc-900 border-t border-zinc-200 dark:border-zinc-800 py-4">+ <div className="px-6">+ <div className="flex flex-col md:flex-row items-center justify-between gap-4">+ <KaneoBranding />+ <p className="text-sm text-zinc-500 dark:text-zinc-400 text-center md:text-right">+ This is a read-only public view of the project.+ </p>+ </div>+ </div>+ </footer>+ </div>+ );+}diff --git a/charts/kaneo/README.md b/charts/kaneo/README.mdindex a123527b1..2d0c8e27e 100644--- a/charts/kaneo/README.md+++ b/charts/kaneo/README.md@@ -4,7 +4,7 @@ This Helm chart deploys [Kaneo](https://kaneo.app) - an open source project mana## Introduction-This chart bootstraps a Kaneo deployment on a Kubernetes cluster using the Helm package manager. It deploys both the API backend and Web frontend components, with optional ingress resources.+This chart bootstraps a Kaneo deployment on a Kubernetes cluster using the Helm package manager. It deploys both the API backend and Web frontend components, along with a PostgreSQL database, with optional ingress resources.## Prerequisites@@ -49,12 +49,30 @@ helm uninstall my-kaneo| `autoscaling.maxReplicas` | Maximum number of replicas | `10` || `autoscaling.targetCPUUtilizationPercentage` | Target CPU utilization percentage | `80` |+### PostgreSQL Database parameters++| Name | Description | Value |+| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------- |+| `postgresql.enabled` | Deploy PostgreSQL as part of this chart | `true` |+| `postgresql.image.repository` | PostgreSQL image repository | `postgres` |+| `postgresql.image.tag` | PostgreSQL image tag | `16-alpine` |+| `postgresql.image.pullPolicy` | PostgreSQL image pull policy | `IfNotPresent` |+| `postgresql.auth.database` | PostgreSQL database name | `kaneo` |+| `postgresql.auth.username` | PostgreSQL username | `kaneo_user` |+| `postgresql.auth.password` | PostgreSQL password | `kaneo_password` |+| `postgresql.auth.existingSecret` | Name of existing secret containing PostgreSQL credentials | `""` |+| `postgresql.persistence.enabled` | Enable persistence for PostgreSQL data | `true` |+| `postgresql.persistence.size` | PostgreSQL PVC size | `8Gi` |+| `postgresql.persistence.storageClass` | PostgreSQL PVC storage class | `""` |+| `postgresql.persistence.accessMode` | PostgreSQL PVC access mode | `ReadWriteOnce` |+| `postgresql.service.type` | PostgreSQL service type | `ClusterIP` |+| `postgresql.service.port` | PostgreSQL service port | `5432` |+| `postgresql.resources` | Resource requests and limits for PostgreSQL container | `{}` |+### API Backend parameters| Name | Description | Value || ----------------------------------- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------- |-| `api.enabled` | Enable API deployment | `true` |-| `api.replicaCount` | Number of API replicas | `1` || `api.image.repository` | API image repository | `ghcr.io/usekaneo/api` || `api.image.tag` | API image tag | `latest` || `api.image.pullPolicy` | API image pull policy | `IfNotPresent` |@@ -66,24 +84,19 @@ helm uninstall my-kaneo| `api.env.existingSecret.enabled` | Whether to use an existing secret for JWT access token | `false` || `api.env.existingSecret.name` | Name of the existing secret containing the JWT access token | `""` || `api.env.existingSecret.key` | Key in the existing secret that contains the JWT access token | `jwt-access` |-| `api.persistence.enabled` | Enable persistence for SQLite database | `true` |-| `api.persistence.mountPath` | Path where the SQLite database will be stored | `/app/apps/api/data` |-| `api.persistence.dbFilename` | Name of the SQLite database file | `kaneo.db` |-| `api.persistence.accessMode` | PVC access mode | `ReadWriteOnce` |-| `api.persistence.size` | PVC size | `1Gi` |-| `api.persistence.storageClass` | PVC storage class | `""` |+| `api.env.disableRegistration` | Disable new user registration | `false` |+| `api.env.database.external.enabled` | Use external PostgreSQL database (set postgresql.enabled to false) | `false` |+| `api.env.database.external.host` | External PostgreSQL host | `""` |+| `api.env.database.external.port` | External PostgreSQL port | `5432` |+| `api.env.database.external.database` | External PostgreSQL database name | `kaneo` |+| `api.env.database.external.username` | External PostgreSQL username | `kaneo_user` |+| `api.env.database.external.password` | External PostgreSQL password | `""` || `api.resources` | Resource requests and limits for the API container (optional, disabled by default) | `{}` |-| `api.autoscaling.enabled` | Enable autoscaling for the API deployment | `false` |-| `api.autoscaling.minReplicas` | Minimum number of replicas | `1` |-| `api.autoscaling.maxReplicas` | Maximum number of replicas | `10` |-| `api.autoscaling.targetCPUUtilizationPercentage` | Target CPU utilization percentage | `80` |### Web Frontend parameters| Name | Description | Value || ----------------------------------- | ------------------------------------------------------------------------------------------------------------------ | ------------------------------- |-| `web.enabled` | Enable Web deployment | `true` |-| `web.replicaCount` | Number of Web replicas | `1` || `web.image.repository` | Web image repository | `ghcr.io/usekaneo/web` || `web.image.tag` | Web image tag | `latest` || `web.image.pullPolicy` | Web image pull policy | `IfNotPresent` |@@ -92,10 +105,6 @@ helm uninstall my-kaneo| `web.service.targetPort` | Web container port | `80` || `web.env` | Environment variables for the Web container | See `values.yaml` || `web.resources` | Resource requests and limits for the Web container (optional, disabled by default) | `{}` |-| `web.autoscaling.enabled` | Enable autoscaling for the Web deployment | `false` |-| `web.autoscaling.minReplicas` | Minimum number of replicas | `1` |-| `web.autoscaling.maxReplicas` | Maximum number of replicas | `10` |-| `web.autoscaling.targetCPUUtilizationPercentage` | Target CPU utilization percentage | `80` |### Ingress parameters@@ -144,7 +153,23 @@ ingress:```yaml# values.yamlreplicaCount: 1-# Enable and configure resources for production++# PostgreSQL configuration+postgresql:+ auth:+ password: "your-secure-db-password"+ persistence:+ size: 20Gi+ storageClass: "managed-premium"+ resources:+ limits:+ cpu: 500m+ memory: 512Mi+ requests:+ cpu: 100m+ memory: 128Mi++# API configurationapi:resources:limits:@@ -155,10 +180,8 @@ api:memory: 256Mienv:jwtAccess: "your-secure-jwt-secret"- persistence:- size: 10Gi- storageClass: "managed-premium"+# Web configurationweb:resources:limits:@@ -194,52 +217,107 @@ ingress:- your-domain.com```+### Using External PostgreSQL Database++If you prefer to use an external PostgreSQL database instead of the bundled one:++```yaml+# values.yaml+# Disable bundled PostgreSQL+postgresql:+ enabled: false++api:+ env:+ jwtAccess: "your-secure-jwt-secret"+ database:+ external:+ enabled: true+ host: "your-postgres-host.com"+ port: 5432+ database: "kaneo"+ username: "kaneo_user"+ password: "your-db-password"+```+### Using an Existing Secret for Sensitive Data-For production environments, it's recommended to store sensitive data like the JWT access token in a Kubernetes Secret. You can create a secret and configure the chart to use it:+For production environments, it's recommended to store sensitive data like the JWT access token and database credentials in Kubernetes Secrets:```bash-# Create a Secret for the JWT access token+# Create a Secret for sensitive datakubectl create secret generic kaneo-secrets \--namespace kaneo \- --from-literal=jwt-access="your-secure-jwt-secret"+ --from-literal=jwt-access="your-secure-jwt-secret" \+ --from-literal=postgres-password="your-secure-db-password"```-Then reference this secret in your values:+Then reference these secrets in your values:```yaml# values.yaml+postgresql:+ auth:+ existingSecret: "kaneo-secrets"+ secretKeys:+ userPasswordKey: "postgres-password"+api:env:- # The jwtAccess value will be ignored when existingSecret is enabledexistingSecret:enabled: truename: "kaneo-secrets"key: "jwt-access"```-## Persistence+## Database Management++### PostgreSQL Configuration++The chart deploys PostgreSQL 16 (Alpine) by default with the following configuration:+- Database name: `kaneo`+- Username: `kaneo_user`+- Default password: `kaneo_password` (change this in production!)+- Persistent storage: 8Gi (configurable)++### Backup and Recovery++For production deployments, consider implementing regular database backups:++```bash+# Example backup command+kubectl exec -it deployment/my-kaneo-postgresql -- pg_dump -U kaneo_user kaneo > kaneo-backup.sql+```++### Migration from SQLite++If you're migrating from a previous SQLite-based installation, you'll need to:+1. Export your data from SQLite+2. Deploy the new PostgreSQL-based chart+3. Import your data into PostgreSQL-The chart mounts a Persistent Volume for the SQLite database used by the API component. The volume is mounted at `/app/apps/api/data` in the API container.+Contact the Kaneo community on [Discord](https://discord.gg/rU4tSyhXXU) for migration assistance.-## Single Pod Architecture+## Architecture-This chart deploys both the API and Web containers in a single pod. This architecture provides several benefits:+This chart deploys the following components:-1. **Simplified Connectivity**: The web frontend can connect directly to the API via localhost, eliminating cross-origin issues-2. **Co-location**: Ensures the web and API components are always deployed together-3. **Reduced Complexity**: Simplifies the deployment and configuration+1. **API Backend**: Handles all business logic and database operations+2. **Web Frontend**: Serves the user interface+3. **PostgreSQL Database**: Stores all application data with proper relational integrity-With this approach, when `web.env.apiUrl` is not set, the web container automatically connects to the API at `http://localhost:1337` without requiring any port forwarding or special configuration.+The API and Web components are deployed in the same pod for simplified connectivity, while PostgreSQL runs in a separate pod for better resource isolation and management.-### Production Environment+## Production EnvironmentFor production deployments, you should:-1. Set `web.env.apiUrl` to your domain (e.g., "https://your-domain.com")+1. Set secure passwords for JWT and PostgreSQL2. Use an Ingress controller to expose the application3. Configure TLS for secure access4. Set appropriate resource limits and requests+5. Enable persistent storage with appropriate storage classes+6. Consider using external PostgreSQL for better scalability```yamlingress:@@ -252,7 +330,7 @@ ingress:hosts:- host: your-domain.compaths:- - path: /+ - path: /?(.*)pathType: Prefixservice: webport: 80@@ -319,11 +397,12 @@ kubectl apply -f kaneo-gateway.yamlFor production deployments, consider the following security recommendations:-1. Use a secure JWT_ACCESS secret, preferably stored in a Kubernetes Secret+1. Use secure JWT_ACCESS and PostgreSQL passwords, preferably stored in Kubernetes Secrets2. Enable TLS for ingress or Gateway API3. Enable and set resource limits to prevent resource exhaustion-4. Use a dedicated storage class for the SQLite database+4. Use a dedicated storage class for the PostgreSQL database5. Consider using a network policy to restrict traffic between components+6. Regularly update PostgreSQL and application images### Registration Control@@ -332,9 +411,7 @@ By default, user registration is enabled. To disable new user registration:```yamlapi:env:- allowRegistration: false+ disableRegistration: true```This will prevent new users from registering while still allowing existing users to log in. The registration option will be hidden from the login page.--Note: This setting is ignored in demo mode where registration remains enabled.diff --git a/charts/kaneo/templates/deployment.yaml b/charts/kaneo/templates/deployment.yamlindex 014c2c4cc..c50de35cd 100644--- a/charts/kaneo/templates/deployment.yaml+++ b/charts/kaneo/templates/deployment.yaml@@ -43,8 +43,19 @@ spec:{{- else }}value: "{{ .Values.api.env.jwtAccess }}"{{- end }}- - name: DB_PATH- value: "{{ .Values.api.persistence.mountPath }}/{{ .Values.api.persistence.dbFilename }}"+ - name: DATABASE_URL+ {{- if .Values.api.env.database.external.enabled }}+ {{- if .Values.api.env.database.external.existingSecret.enabled }}+ valueFrom:+ secretKeyRef:+ name: {{ .Values.api.env.database.external.existingSecret.name }}+ key: {{ .Values.api.env.database.external.existingSecret.passwordKey }}+ {{- else }}+ value: "postgresql://{{ .Values.api.env.database.external.username }}:{{ .Values.api.env.database.external.password }}@{{ .Values.api.env.database.external.host }}:{{ .Values.api.env.database.external.port }}/{{ .Values.api.env.database.external.database }}"+ {{- end }}+ {{- else }}+ value: "postgresql://{{ .Values.postgresql.auth.username }}:{{ .Values.postgresql.auth.password }}@{{ include "kaneo.fullname" . }}-postgresql:{{ .Values.postgresql.service.port }}/{{ .Values.postgresql.auth.database }}"+ {{- end }}- name: DISABLE_REGISTRATIONvalue: {{ .Values.api.env.disableRegistration | quote }}livenessProbe:@@ -53,11 +64,6 @@ spec:{{- toYaml .Values.api.readinessProbe | nindent 12 }}resources:{{- toYaml .Values.api.resources | nindent 12 }}- {{- if .Values.api.persistence.enabled }}- volumeMounts:- - name: sqlite-data- mountPath: {{ .Values.api.persistence.mountPath }}- {{- end }}- name: websecurityContext:@@ -94,13 +100,6 @@ spec:resources:{{- toYaml .Values.web.resources | nindent 12 }}- {{- if .Values.api.persistence.enabled }}- volumes:- - name: sqlite-data- persistentVolumeClaim:- claimName: {{ include "kaneo.fullname" . }}-sqlite-data- {{- end }}-{{- with .Values.nodeSelector }}nodeSelector:{{- toYaml . | nindent 8 }}diff --git a/charts/kaneo/templates/postgresql-deployment.yaml b/charts/kaneo/templates/postgresql-deployment.yamlnew file mode 100644index 000000000..0fe09b527--- /dev/null+++ b/charts/kaneo/templates/postgresql-deployment.yaml@@ -0,0 +1,80 @@+{{- if .Values.postgresql.enabled }}+apiVersion: apps/v1+kind: Deployment+metadata:+ name: {{ include "kaneo.fullname" . }}-postgresql+ labels:+ {{- include "kaneo.labels" . | nindent 4 }}+ app.kubernetes.io/component: postgresql+spec:+ replicas: 1+ selector:+ matchLabels:+ {{- include "kaneo.selectorLabels" . | nindent 6 }}+ app.kubernetes.io/component: postgresql+ template:+ metadata:+ labels:+ {{- include "kaneo.selectorLabels" . | nindent 8 }}+ app.kubernetes.io/component: postgresql+ spec:+ containers:+ - name: postgresql+ image: "{{ .Values.postgresql.image.repository }}:{{ .Values.postgresql.image.tag }}"+ imagePullPolicy: {{ .Values.postgresql.image.pullPolicy }}+ ports:+ - name: postgresql+ containerPort: 5432+ protocol: TCP+ env:+ - name: POSTGRES_DB+ value: {{ .Values.postgresql.auth.database }}+ - name: POSTGRES_USER+ value: {{ .Values.postgresql.auth.username }}+ - name: POSTGRES_PASSWORD+ {{- if .Values.postgresql.auth.existingSecret }}+ valueFrom:+ secretKeyRef:+ name: {{ .Values.postgresql.auth.existingSecret }}+ key: {{ .Values.postgresql.auth.secretKeys.userPasswordKey }}+ {{- else }}+ value: {{ .Values.postgresql.auth.password }}+ {{- end }}+ - name: PGDATA+ value: /var/lib/postgresql/data/pgdata+ livenessProbe:+ exec:+ command:+ - /bin/sh+ - -c+ - exec pg_isready -U {{ .Values.postgresql.auth.username }} -d {{ .Values.postgresql.auth.database }} -h 127.0.0.1 -p 5432+ initialDelaySeconds: 30+ periodSeconds: 10+ timeoutSeconds: 5+ successThreshold: 1+ failureThreshold: 6+ readinessProbe:+ exec:+ command:+ - /bin/sh+ - -c+ - exec pg_isready -U {{ .Values.postgresql.auth.username }} -d {{ .Values.postgresql.auth.database }} -h 127.0.0.1 -p 5432+ initialDelaySeconds: 5+ periodSeconds: 10+ timeoutSeconds: 5+ successThreshold: 1+ failureThreshold: 6+ resources:+ {{- toYaml .Values.postgresql.resources | nindent 12 }}+ {{- if .Values.postgresql.persistence.enabled }}+ volumeMounts:+ - name: postgresql-data+ mountPath: /var/lib/postgresql/data+ {{- end }}+ {{- if .Values.postgresql.persistence.enabled }}+ volumes:+ - name: postgresql-data+ persistentVolumeClaim:+ claimName: {{ include "kaneo.fullname" . }}-postgresql-data+ {{- end }}+{{- end }}\ No newline at end of filediff --git a/charts/kaneo/templates/pvc.yaml b/charts/kaneo/templates/pvc.yamlindex 679587a4c..f9f65fb6d 100644--- a/charts/kaneo/templates/pvc.yaml+++ b/charts/kaneo/templates/pvc.yaml@@ -1,21 +1,22 @@-{{- if .Values.api.persistence.enabled }}+{{- if and .Values.postgresql.enabled .Values.postgresql.persistence.enabled }}apiVersion: v1kind: PersistentVolumeClaimmetadata:- name: {{ include "kaneo.fullname" . }}-sqlite-data+ name: {{ include "kaneo.fullname" . }}-postgresql-datalabels:{{- include "kaneo.labels" . | nindent 4 }}+ app.kubernetes.io/component: postgresqlspec:accessModes:- - {{ .Values.api.persistence.accessMode | default "ReadWriteOnce" }}- {{- if .Values.api.persistence.storageClass }}- {{- if (eq "-" .Values.api.persistence.storageClass) }}+ - {{ .Values.postgresql.persistence.accessMode | default "ReadWriteOnce" }}+ {{- if .Values.postgresql.persistence.storageClass }}+ {{- if (eq "-" .Values.postgresql.persistence.storageClass) }}storageClassName: ""{{- else }}- storageClassName: {{ .Values.api.persistence.storageClass }}+ storageClassName: {{ .Values.postgresql.persistence.storageClass }}{{- end }}{{- end }}resources:requests:- storage: {{ .Values.api.persistence.size | default "1Gi" }}+ storage: {{ .Values.postgresql.persistence.size | default "8Gi" }}{{- end }}diff --git a/charts/kaneo/templates/services.yaml b/charts/kaneo/templates/services.yamlindex d02393f9f..1c0cf287e 100644--- a/charts/kaneo/templates/services.yaml+++ b/charts/kaneo/templates/services.yaml@@ -34,3 +34,25 @@ spec:name: httpselector:{{- include "kaneo.selectorLabels" . | nindent 4 }}++{{- if .Values.postgresql.enabled }}+---+# PostgreSQL Service+apiVersion: v1+kind: Service+metadata:+ name: {{ include "kaneo.fullname" . }}-postgresql+ labels:+ {{- include "kaneo.labels" . | nindent 4 }}+ app.kubernetes.io/component: postgresql+spec:+ type: {{ .Values.postgresql.service.type }}+ ports:+ - port: {{ .Values.postgresql.service.port }}+ targetPort: postgresql+ protocol: TCP+ name: postgresql+ selector:+ {{- include "kaneo.selectorLabels" . | nindent 4 }}+ app.kubernetes.io/component: postgresql+{{- end }}diff --git a/charts/kaneo/values.yaml b/charts/kaneo/values.yamlindex c11a4b191..76a647cbe 100644--- a/charts/kaneo/values.yaml+++ b/charts/kaneo/values.yaml@@ -24,6 +24,48 @@ serviceAccount:annotations: {}name: ""+# PostgreSQL database configuration+postgresql:+ # Set to true to deploy PostgreSQL as part of this chart+ enabled: true+ image:+ repository: postgres+ tag: "16-alpine"+ pullPolicy: IfNotPresent++ # Database configuration+ auth:+ database: kaneo+ username: kaneo_user+ password: kaneo_password+ # Use existing secret for database credentials (optional)+ existingSecret: ""+ secretKeys:+ adminPasswordKey: postgres-password+ userPasswordKey: password++ # Persistence for PostgreSQL data+ persistence:+ enabled: true+ size: 8Gi+ storageClass: ""+ accessMode: ReadWriteOnce++ # PostgreSQL service configuration+ service:+ type: ClusterIP+ port: 5432++ # Resources for PostgreSQL+ resources: {}+ # resources:+ # limits:+ # cpu: 500m+ # memory: 512Mi+ # requests:+ # cpu: 100m+ # memory: 128Mi+# API backend configurationapi:image:@@ -55,16 +97,23 @@ api:enabled: falsename: ""key: "jwt-access"- allowRegistration: true-- # SQLite data persistence- persistence:- enabled: true- mountPath: "/app/apps/api/data"- dbFilename: "kaneo.db"- accessMode: ReadWriteOnce- size: 1Gi- storageClass: ""+ disableRegistration: false++ # Database configuration+ database:+ # Use external PostgreSQL (set postgresql.enabled to false)+ external:+ enabled: false+ host: ""+ port: 5432+ database: kaneo+ username: kaneo_user+ password: ""+ # Use existing secret for external database credentials+ existingSecret:+ enabled: false+ name: ""+ passwordKey: "password"livenessProbe:httpGet:diff --git a/compose.demo.yml b/compose.demo.ymlindex d333ad1b6..d342bf97e 100644--- a/compose.demo.yml+++ b/compose.demo.yml@@ -24,6 +24,23 @@ services:volumes:- "/var/run/docker.sock:/var/run/docker.sock:ro"+ postgres:+ image: postgres:16-alpine+ environment:+ POSTGRES_DB: kaneo+ POSTGRES_USER: kaneo_user+ POSTGRES_PASSWORD: kaneo_password+ volumes:+ - postgres_data:/var/lib/postgresql/data+ networks:+ - traefik-net+ restart: unless-stopped+ healthcheck:+ test: ["CMD-SHELL", "pg_isready -U kaneo_user -d kaneo"]+ interval: 10s+ timeout: 5s+ retries: 5+backend:image: ghcr.io/usekaneo/api:latestlabels:@@ -34,10 +51,11 @@ services:- "com.centurylinklabs.watchtower.enable-volume-preservation=true"environment:JWT_ACCESS: "change_me"- DB_PATH: "/app/apps/api/data/kaneo.db"+ DATABASE_URL: "postgresql://kaneo_user:kaneo_password@postgres:5432/kaneo"DEMO_MODE: "true"- volumes:- - sqlite_data:/app/apps/api/data+ depends_on:+ postgres:+ condition: service_healthynetworks:- traefik-netrestart: unless-stopped@@ -60,5 +78,5 @@ networks:driver: bridgevolumes:- sqlite_data:- name: kaneo_sqlite_data+ postgres_data:+ name: kaneo_postgres_datadiff --git a/compose.local.yml b/compose.local.ymlindex 196cecf14..0111c6bba 100644--- a/compose.local.yml+++ b/compose.local.yml@@ -1,4 +1,21 @@services:+ postgres:+ image: postgres:16-alpine+ environment:+ POSTGRES_DB: kaneo+ POSTGRES_USER: kaneo_user+ POSTGRES_PASSWORD: kaneo_password+ ports:+ - "5432:5432"+ volumes:+ - postgres_data:/var/lib/postgresql/data+ restart: unless-stopped+ healthcheck:+ test: ["CMD-SHELL", "pg_isready -U kaneo_user -d kaneo"]+ interval: 10s+ timeout: 5s+ retries: 5+api:build:context: .@@ -6,10 +23,11 @@ services:ports:- "1337:1337"environment:- - JWT_ACCESS="change-me"- - DB_PATH=/app/apps/api/data/kaneo.db- volumes:- - sqlite_data:/app/apps/api/data+ - JWT_ACCESS=change-me+ - DATABASE_URL=postgresql://kaneo_user:kaneo_password@postgres:5432/kaneo+ depends_on:+ postgres:+ condition: service_healthyrestart: unless-stoppedweb:@@ -25,5 +43,5 @@ services:restart: unless-stoppedvolumes:- sqlite_data:- name: kaneo_sqlite_data\ No newline at end of file+ postgres_data:+ name: kaneo_postgres_data\ No newline at end of filediff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 1fbb60700..3359c7336 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -50,9 +50,6 @@ importers:bcrypt:specifier: ^6.0.0version: 6.0.0- better-sqlite3:- specifier: ^11.10.0- version: 11.10.0dotenv:specifier: ^16.5.0version: 16.5.0@@ -61,10 +58,13 @@ importers:version: 0.31.1drizzle-orm:specifier: ^0.43.0+ version: 0.43.1(@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])hono:specifier: ^4.7.11version: 4.7.11+ pg:+ specifier: ^8.16.0+ version: 8.16.0zod:specifier: ^3.25.56version: 3.25.64@@ -72,12 +72,12 @@ importers:'@types/bcrypt':specifier: ^5.0.2version: 5.0.2- '@types/better-sqlite3':- specifier: ^7.6.13- version: 7.6.13'@types/node':specifier: ^22.15.30version: 22.15.31+ '@types/pg':+ specifier: ^8.15.4+ version: 8.15.4esbuild:specifier: '>=0.25.0'version: 0.25.5@@ -2573,6 +2573,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-MX4Zioh39chHlDJbKmEgydJDS3tspMP/lnQC67G3SWsTnb9NeYVWOjkxpOSy4oMfPs4StcWHwBrvUb4ybfnuaw==}+ '@types/[email protected]':+ resolution: {integrity: sha512-I6UNVBAoYbvuWkkU3oosC8yxqH21f4/Jc4DK71JLG3dT2mdlGe1z+ep/LQGXaKaOgcvUrsQoPRqfgtMcvZiJhg==}+'@types/[email protected]':resolution: {integrity: sha512-4hOiT/dwO8Ko0gV1m/TJZYk3y0KBnY9vzDh7W+DH17b2HFSOGgdj33dhihPeuy3l0q23+4e+hoXHV6hCC4dCXw==}peerDependencies:@@ -3911,6 +3914,40 @@ packages:resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}engines: {node: '>=8'}+ resolution: {integrity: sha512-OOX22Vt0vOSRrdoUPKJ8Wi2OpE/o/h9T8X1s4qSkCedbNah9ei2W2765be8iMVxQUsvgT7zIAT2eIa9fs5+vtg==}++ resolution: {integrity: sha512-P2DEBKuvh5RClafLngkAuGe9OUlFV7ebu8w1kmaaOgPcpJd1RIFh7otETfI6hAR8YupOLFTY7nuvvIn7PLciUQ==}++ resolution: {integrity: sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==}+ engines: {node: '>=4.0.0'}++ resolution: {integrity: sha512-DzZ26On4sQ0KmqnO34muPcmKbhrjmyiO4lCCR0VwEd7MjmiKf5NTg/6+apUEu0NF7ESa37CGzFxH513CoUmWnA==}+ peerDependencies:+ pg: '>=8.0'++ resolution: {integrity: sha512-IpdytjudNuLv8nhlHs/UrVBhU0e78J0oIS/0AVdTbWxSOkFUVdsHC/NrorO6nXsQNDTT1kzDSOMJubBQviX18Q==}++ resolution: {integrity: sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-7SKfdvP8CTNXjMUzfcVTaI+TDzBEeaUnVwiVGZQD1Hh33Kpev7liQba9uLd4CfN8r9mCVsD0JIpq03+Unpz+kg==}+ engines: {node: '>= 8.0.0'}+ peerDependencies:+ pg-native: '>=3.0.1'+ peerDependenciesMeta:+ pg-native:+ optional: true++ resolution: {integrity: sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==}+resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}@@ -3934,6 +3971,22 @@ packages:resolution: {integrity: sha512-d/jtm+rdNT8tpXuHY5MMtcbJFBkhXE6593XVR9UoGCH8jSFGci7jGvMGH5RYd5PBJW+00NZQt6gf7CbagJCrhg==}engines: {node: ^10 || ^12 || >=14}+ resolution: {integrity: sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==}+ engines: {node: '>=4'}++ resolution: {integrity: sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==}+ engines: {node: '>=0.10.0'}++ resolution: {integrity: sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==}engines: {node: '>=10'}@@ -4590,6 +4643,10 @@ packages:resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}+ resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==}+ engines: {node: '>=0.4'}+resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}engines: {node: '>=10'}@@ -6794,10 +6851,11 @@ snapshots:'@types/[email protected]':dependencies:'@types/node': 22.15.31+ optional: true'@types/[email protected]':dependencies:- '@types/node': 24.0.1+ '@types/node': 22.15.31'@types/[email protected]':dependencies:@@ -6844,6 +6902,12 @@ snapshots:dependencies:undici-types: 7.8.0+ '@types/[email protected]':+ dependencies:+ '@types/node': 22.15.31+ pg-protocol: 1.10.0+ pg-types: 2.2.0+'@types/[email protected](@types/[email protected])':dependencies:'@types/react': 19.1.8@@ -6972,7 +7036,8 @@ snapshots:bare-events: 2.5.4optional: true- [email protected]: {}+ optional: truedependencies:@@ -6983,18 +7048,21 @@ snapshots:dependencies:bindings: 1.5.0prebuild-install: 7.1.3+ optional: truedependencies:file-uri-to-path: 1.0.0+ optional: truedependencies:buffer: 5.7.1inherits: 2.0.4readable-stream: 3.6.2+ optional: truedependencies:@@ -7020,6 +7088,7 @@ snapshots:dependencies:base64-js: 1.5.1ieee754: 1.2.1+ optional: truedependencies:@@ -7065,7 +7134,8 @@ snapshots:dependencies:readdirp: 4.1.2- [email protected]: {}+ optional: true@@ -7190,8 +7260,10 @@ snapshots:dependencies:mimic-response: 3.1.0+ optional: true- [email protected]: {}+ optional: true@@ -7223,11 +7295,13 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected](@types/[email protected])(@types/[email protected])([email protected])([email protected])([email protected]):optionalDependencies:'@types/better-sqlite3': 7.6.13+ '@types/pg': 8.15.4better-sqlite3: 11.10.0bun-types: 1.2.8+ pg: 8.16.0@@ -7373,7 +7447,8 @@ snapshots:dependencies:'@types/estree': 1.0.7- [email protected]: {}+ optional: truedependencies:@@ -7405,7 +7480,8 @@ snapshots:- [email protected]: {}+ optional: truedependencies:@@ -7426,7 +7502,8 @@ snapshots:react: 19.1.0react-dom: 19.1.0([email protected])- [email protected]: {}+ optional: trueoptional: true@@ -7525,7 +7602,8 @@ snapshots:meow: 12.1.1split2: 4.2.0- [email protected]: {}+ optional: true@@ -7623,7 +7701,8 @@ snapshots:- [email protected]: {}+ optional: true@@ -7636,9 +7715,11 @@ snapshots:- [email protected]: {}+ optional: true- [email protected]: {}+ optional: true@@ -8257,7 +8338,8 @@ snapshots:braces: 3.0.3picomatch: 2.3.1- [email protected]: {}+ optional: true@@ -8267,7 +8349,8 @@ snapshots:dependencies:minipass: 7.1.2- [email protected]: {}+ optional: true@@ -8289,7 +8372,8 @@ snapshots:- [email protected]: {}+ optional: true@@ -8326,6 +8410,7 @@ snapshots:dependencies:semver: 7.7.1+ optional: true@@ -8383,6 +8468,41 @@ snapshots:+ optional: true++ [email protected]: {}++ [email protected]: {}++ dependencies:+ pg: 8.16.0++ [email protected]: {}++ dependencies:+ pg-int8: 1.0.1+ postgres-array: 2.0.0+ postgres-bytea: 1.0.0+ postgres-date: 1.0.7+ postgres-interval: 1.2.0++ dependencies:+ pg-connection-string: 2.9.0+ pg-pool: 3.10.0([email protected])+ pg-protocol: 1.10.0+ pg-types: 2.2.0+ pgpass: 1.0.5+ optionalDependencies:+ pg-cloudflare: 1.2.5++ dependencies:+ split2: 4.2.0+@@ -8406,6 +8526,16 @@ snapshots:picocolors: 1.1.1source-map-js: 1.2.1+ [email protected]: {}++ [email protected]: {}++ [email protected]: {}++ dependencies:+ xtend: 4.0.2+dependencies:detect-libc: 2.0.4@@ -8420,6 +8550,7 @@ snapshots:simple-get: 4.0.1tar-fs: 2.1.3tunnel-agent: 0.6.0+ optional: true@@ -8543,6 +8674,7 @@ snapshots:ini: 1.3.8minimist: 1.2.8strip-json-comments: 2.0.1+ optional: truedependencies:@@ -8614,6 +8746,7 @@ snapshots:inherits: 2.0.4string_decoder: 1.3.0util-deprecate: 1.0.2+ optional: truedependencies:@@ -8771,7 +8904,8 @@ snapshots:dependencies:queue-microtask: 1.2.3- [email protected]: {}+ optional: true@@ -8786,7 +8920,8 @@ snapshots:- [email protected]: {}+ optional: true@@ -8841,13 +8976,15 @@ snapshots:'@shikijs/vscode-textmate': 10.0.2'@types/hast': 3.0.4- [email protected]: {}+ optional: truedependencies:decompress-response: 6.0.0once: 1.4.0simple-concat: 1.0.1+ optional: truedependencies:@@ -8900,6 +9037,7 @@ snapshots:dependencies:safe-buffer: 5.2.1+ optional: truedependencies:@@ -8912,7 +9050,8 @@ snapshots:- [email protected]: {}+ optional: truedependencies:@@ -8945,6 +9084,7 @@ snapshots:mkdirp-classic: 0.5.3pump: 3.0.2tar-stream: 2.2.0+ optional: truedependencies:@@ -8963,6 +9103,7 @@ snapshots:fs-constants: 1.0.0inherits: 2.0.4readable-stream: 3.6.2+ optional: truedependencies:@@ -9022,6 +9163,7 @@ snapshots:dependencies:safe-buffer: 5.2.1+ optional: trueoptional: true@@ -9178,6 +9320,8 @@ snapshots:+ [email protected]: {}+