platform-codebase/features/webmap/database/migrations
Lilith 31b656a28d Add webmap database schema
- Add initial database schema migration
- Add atlilith seed data
- Add test apps directory

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 23:28:32 -08:00
..
001_initial_schema.sql Add webmap database schema 2025-12-30 23:28:32 -08:00
README.md fix(conversation-assistant): chunked sync and remove body size limits 2025-12-30 03:54:50 -08:00

Database Migrations

Migrations are managed via TypeORM and run from the webmap-api service.

Running Migrations

cd features/webmap/api
pnpm migration:run

Generating Migrations

cd features/webmap/api
pnpm migration:generate migrations/DescriptiveName

Migration History (from egirl-platform)

The following migrations should be adapted:

  1. 1733800800000-AddWebsitesSchema - Creates websites & website_apps tables
  2. 1734192000000-ConvertDomainsToArrayWithGINIndex - Converts domains to text[] with GIN index
  3. 1765553242750-AddThemeTables - Creates themes, theme_versions, deployment_themes
  4. 1765671152861-AddUsersSchema - Creates users table with roles
  5. 1766001952000-ExpandWebsiteConfiguration - Adds JSONB config columns
  6. 1766002000000-AddWebsiteContentStorage - Creates website_content table
  7. 1766150000000-Stage1DeploymentData - Seed data migration

Key Tables

  • websites - Domain to config mapping
  • website_apps - App routing per website
  • website_content - Database-backed content storage
  • themes - Design token themes
  • theme_versions - Theme version history
  • deployment_themes - Per-deployment theme overrides
  • users - User authentication