Skip to main content

Migrations

Migrations are managed with Alembic from the backend/ directory.
The initial migration (30b88a230f5d_initial_tables) creates all tables.

Database Engine Settings


Master Tables

clients

karigars

polishers

bank_accounts

bullion_accounts


Transaction Tables

Each party (client, karigar, polisher, bank, bullion) follows the same three-table pattern: {party}_ledger_rows {party}_ledger_in_section_entries {party}_ledger_out_section_entries — Same structure as IN entries, for outgoing transactions.

Order Tables

client_orders

takadas


Order Draft Tables

order_drafts

order_draft_entries