Koovira Dev Docs
90-database/tables/orders_master.md

orders_master

Generated from the live schema on 2026-09-06 by _tools/gen_data_dictionary.php. Do not hand-edit — regeneration overwrites this file. Put prose in the module page.

Exact row count (2026-09-06): 13

Columns

ColumnTypeNullKeyDefaultExtra
rowIdbigint(20)NOPRIauto_increment
order_uidvarchar(100)NOMUL
order_numbervarchar(50)NOMUL
buyer_idbigint(20)NOMUL
seller_idbigint(20)NOMUL
product_idbigint(20)NOMUL
inventory_idbigint(20) unsignedYES
variant_jsontextYES
quantityint(11)NOMUL1
unit_pricedecimal(12,2)NO
subtotaldecimal(12,2)NO
gst_amountdecimal(12,2)YES0.00
shipping_chargesdecimal(10,2)YES0.00
delivery_chargesdecimal(10,2)NO0.00
platform_feedecimal(12,2)NO0.00
discount_amountdecimal(12,2)YES0.00
coupon_codevarchar(50)YES
total_amountdecimal(12,2)NO
payment_methodenum('cod','online','wallet','upi')YEScod
payment_statusenum('pending','paid','failed','refunded')YESMULpending
payment_idvarchar(255)YES
kv_billing_uidchar(36)YES
order_statusvarchar(64)NOMULpending
delivery_modeenum('quick','regular')NOregular
shipping_addresstextNO
billing_addresstextYES
tracking_numbervarchar(100)YES
carrier_namevarchar(100)YES
estimated_deliverydateYES
estimated_delivery_atdatetimeYES
delivered_atdatetimeYESMUL
cancelled_atdatetimeYES
cancel_reasontextYES
cancelled_byenum('buyer','seller','admin')YES
return_requested_atdatetimeYES
return_approved_atdatetimeYES
return_reasontextYES
refund_amountdecimal(12,2)YES0.00
refund_statusenum('na','pending','processed','completed')YESna
refunded_atdatetimeYES
download_urlvarchar(1000)YES
download_expirydatetimeYES
is_reviewedtinyint(1)YES0
activestatustinyint(1)YESMUL1
datecreateddatetimeYESMULcurrent_timestamp()
createdIpvarchar(255)YES127.0.0.1
createdbybigint(20)YES1
company_idint(11)YESMUL1
created_user_typeint(11)YES0
datemodifieddatetimeYESMULon update current_timestamp()
modifiedIpvarchar(255)YES
cancellation_feedecimal(12,2)NO0.00
issue_window_startdatetimeYES
issue_window_enddatetimeYES
owner_unboxing_due_atdatetimeYES
owner_unboxing_completed_atdatetimeYES
cgst_amountdecimal(12,2)YES
customer_gstintextYES
customer_legal_namevarchar(255)YES
igst_amountdecimal(12,2)YES
place_of_supply_statetextYES
place_of_supply_state_codetextYES
seller_gstintextYES
seller_statetextYES
seller_state_codetextYES
sgst_amountdecimal(12,2)YES
shipping_amountdecimal(12,2)YES

Declared foreign keys

None declared. (This schema relies mostly on convention-based joins, not FK constraints. Relationships are documented in the relevant module data-model.md.)

Used by

To be filled from the module code map (reverse index): which pages, services and modules read/write this table.