update
This commit is contained in:
@@ -2,9 +2,11 @@
|
||||
|
||||
## Zakres i zrodlo prawdy
|
||||
- Schemat wynika z migracji SQL w `database/migrations`.
|
||||
- Dokument odzwierciedla stan repo na 2026-04-19 (migracje do `20260413_000100`).
|
||||
- Dokument odzwierciedla stan repo na 2026-04-25 (migracje do `20260425_000102`).
|
||||
|
||||
## Ostatnie istotne migracje
|
||||
- `20260425_000102_create_automation_email_once_deliveries_table.sql`
|
||||
- `20260422_000101_backfill_delivery_status_unknowns.sql`
|
||||
- `20260413_000100_ensure_orders_delivery_payment_columns.sql`
|
||||
- `20260412_000099_add_requires_photo_to_project_mappings.sql`
|
||||
- `20260412_000098_rename_external_status_id_to_status_code.sql`
|
||||
@@ -131,6 +133,15 @@
|
||||
### automation_rules, automation_conditions, automation_actions, automation_execution_logs
|
||||
- Definicje regul i historia ich wykonan.
|
||||
|
||||
### automation_email_once_deliveries
|
||||
- Rejestr jednorazowych wysylek e-mail dla akcji automatyzacji (`send_once_per_order`).
|
||||
- Klucz unikalny:
|
||||
- `(rule_id, action_id, order_id)` - gwarancja, ze ta sama akcja e-mail reguly nie zostanie oznaczona drugi raz dla tego samego zamowienia.
|
||||
- Relacje:
|
||||
- `rule_id -> automation_rules.id` (CASCADE),
|
||||
- `action_id -> automation_actions.id` (CASCADE),
|
||||
- `order_id -> orders.id` (CASCADE).
|
||||
|
||||
### shipment_packages
|
||||
- Rekordy przesylek i etykiet.
|
||||
- Wazne kolumny trackingowe (od `000060`):
|
||||
|
||||
Reference in New Issue
Block a user