erp-core-database-v2/ddl
Adrian Flores Cortes ac54edc855 [SPRINT-2-COHERENCIA] feat: Add missing DDL tables and fix numbering
- Add inventory.lots table (coherence with lot.entity.ts)
- Add inventory.pickings table with ENUMs (coherence with picking.entity.ts)
- Add partners.partner_tax_info table (coherence with partner-tax-info.entity.ts)
- Add partners.partner_segments table (coherence with partner-segment.entity.ts)
- Rename 21-fiscal-catalogs.sql to 26-fiscal-catalogs.sql (fix duplicate with 21-inventory.sql)
- Remove duplicate 25-fiscal-catalogs.sql

Gaps resolved:
- GAP-P1-001: lots DDL added
- GAP-P1-002: pickings DDL added
- GAP-P1-006: partner_tax_info DDL added
- GAP-P1-007: partner_segments DDL added
- GAP-P1-008: DDL numbering fixed

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 08:54:32 -06:00
..
01-auth-profiles.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
02-auth-devices.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
03-core-branches.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
04-mobile.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
05-billing-usage.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
06-auth-extended.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
07-users-rbac.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
08-plans.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
09-notifications.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
10-audit.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
11-feature-flags.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
12-webhooks.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
13-storage.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
14-ai.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
15-whatsapp.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
16-partners.sql [SPRINT-2-COHERENCIA] feat: Add missing DDL tables and fix numbering 2026-01-24 08:54:32 -06:00
17-products.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
18-warehouses.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
19-product-attributes.sql [TASK-2026-01-24-GAPS] feat: Add product attributes DDL + fix numbering 2026-01-24 07:27:58 -06:00
20-core-catalogs.sql feat(catalogs): Add core catalogs DDL and seed data (MGN-005) 2026-01-18 08:57:41 -06:00
21-inventory.sql [SPRINT-2-COHERENCIA] feat: Add missing DDL tables and fix numbering 2026-01-24 08:54:32 -06:00
22-sales.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
23-purchases.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
24-invoices.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40:32 -06:00
26-fiscal-catalogs.sql [SPRINT-2-COHERENCIA] feat: Add missing DDL tables and fix numbering 2026-01-24 08:54:32 -06:00
46-purchases-matching.sql [TASK-2026-01-20-003] feat: Add financial DDL and matching tables 2026-01-20 03:47:04 -06:00
50-financial-schema.sql [TASK-2026-01-20-003] feat: Add financial DDL and matching tables 2026-01-20 03:47:04 -06:00
51-financial-accounts.sql [TASK-2026-01-20-003] feat: Add financial DDL and matching tables 2026-01-20 03:47:04 -06:00
52-financial-journals.sql [TASK-2026-01-20-003] feat: Add financial DDL and matching tables 2026-01-20 03:47:04 -06:00
53-financial-entries.sql [TASK-2026-01-20-003] feat: Add financial DDL and matching tables 2026-01-20 03:47:04 -06:00
54-financial-invoices.sql [TASK-2026-01-20-003] feat: Add financial DDL and matching tables 2026-01-20 03:47:04 -06:00
55-financial-payments.sql [TASK-2026-01-20-003] feat: Add financial DDL and matching tables 2026-01-20 03:47:04 -06:00
56-financial-taxes.sql [TASK-2026-01-20-003] feat: Add financial DDL and matching tables 2026-01-20 03:47:04 -06:00
57-financial-bank-reconciliation.sql [TASK-2026-01-20-003] feat: Add financial DDL and matching tables 2026-01-20 03:47:04 -06:00
60-projects-timesheets.sql [PROJECTS] feat: Add timesheets DDL schema 2026-01-20 04:27:58 -06:00