erp-core-database-v2/ddl
rckrdmrd 4b6240311d [TASK-2026-01-20-003] feat: Add financial DDL and matching tables
Financial Schema (50-57):
- 50-financial-schema.sql: Schema + 10 ENUMs
- 51-financial-accounts.sql: account_types, accounts, account_mappings
- 52-financial-journals.sql: fiscal_years, fiscal_periods, journals
- 53-financial-entries.sql: journal_entries, journal_entry_lines
- 54-financial-invoices.sql: invoices, invoice_lines
- 55-financial-payments.sql: payments, payment_invoice_allocations
- 56-financial-taxes.sql: taxes, tax_groups
- 57-financial-bank-reconciliation.sql: bank_statements, bank_statement_lines, rules

Purchases Matching (46):
- 46-purchases-matching.sql: purchase_order_matching, purchase_matching_lines, matching_exceptions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 03:47:04 -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 refactor: Restructure DDL with numbered schema files 2026-01-16 00:40: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
20-core-catalogs.sql feat(catalogs): Add core catalogs DDL and seed data (MGN-005) 2026-01-18 08:57:41 -06:00
21-fiscal-catalogs.sql feat(fiscal): Add fiscal catalogs DDL schema (MGN-005) 2026-01-18 09:31:36 -06:00
21-inventory.sql refactor: Restructure DDL with numbered schema files 2026-01-16 00:40: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
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