Commit 23343b3
committed
refactor(internal): split db/schema.ts into domain files (Commit 3.2)
Splits the monolithic db/schema.ts into domain-specific schema files:
- schema/users.ts: User-related tables
- schema/organizations.ts: Org-related tables
- schema/billing.ts: Billing and credit tables
- schema/runs.ts: Run and agent tables
- schema/enums.ts: Shared enums
- schema/index.ts: Re-exports all schemas
Fixes: Restores .notNull() constraints on org auto_topup_threshold and auto_topup_amount fields that were accidentally dropped during extraction.1 parent b377901 commit 23343b3
File tree
7 files changed
+772
-724
lines changed- packages/internal/src/db
- schema
7 files changed
+772
-724
lines changed
0 commit comments