5df513c138
feat(19-01): update schema with reference item model and tags tables
...
- Add globalItemId and purchasePriceCents columns to items table
- Add globalItemId column to threadCandidates table
- Add tags and globalItemTags tables for tag system
- Remove itemGlobalLinks table (replaced by direct FK)
- Generate migration with data migration step before table drop
2026-04-05 20:25:59 +02:00
82657038cc
feat(18-01): add globalItems, itemGlobalLinks tables and user profile/setup visibility columns
...
- Add globalItems table with brand, model, category, weightGrams, priceCents, imageUrl, description
- Add itemGlobalLinks junction table linking user items to global items (unique per item)
- Add displayName, avatarUrl, bio nullable columns to users table
- Add isPublic boolean column to setups table (default false)
- Import boolean from drizzle-orm/pg-core
- Generate migration 0001_tough_boomerang.sql
2026-04-05 12:57:49 +02:00
ad309510af
Merge branch 'worktree-agent-a9a8b0dc' into Develop
...
# Conflicts:
# .planning/REQUIREMENTS.md
# .planning/ROADMAP.md
# .planning/STATE.md
# drizzle-pg/meta/0000_snapshot.json
# drizzle-pg/meta/_journal.json
# src/db/schema.ts
# src/db/seed.ts
# src/server/middleware/auth.ts
# src/server/services/auth.service.ts
# src/server/services/category.service.ts
# src/server/services/oauth.service.ts
# tests/helpers/db.ts
2026-04-05 10:38:29 +02:00
91e93a31a5
feat(16-01): migrate schema to pgTable and add users table with userId columns
...
- Rewrite schema.ts from sqlite-core to pg-core (pgTable, serial, timestamp, doublePrecision)
- Add users table with id, logtoSub (unique), createdAt
- Add userId FK column to items, categories, threads, setups, apiKeys, oauthTokens
- Add composite unique constraint on categories(userId, name)
- Change settings PK to composite (userId, key)
- Remove global Uncategorized seed from seed.ts (now per-user lazy)
- Generate Drizzle pg migration
2026-04-05 10:32:51 +02:00
3bf1fd7cb8
feat(14-01): add PGlite test helper and generate initial PostgreSQL migration
...
- Rewrite tests/helpers/db.ts to use drizzle-orm/pglite with async createTestDb()
- Generate initial migration with 13 CREATE TABLE statements in drizzle-pg/
- Add drizzle-pg to biome ignore list (generated files)
- PGlite smoke test confirms migrations apply and seed works
2026-04-04 12:18:50 +02:00