returns table
The returns table in the E-commerce Database Schema schema has 7 columns, keyed by id, with 1 foreign key to orders. 2 columns in return_lines and refunds reference it.
Columns (7)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| order_id | uuid | not null, references orders.id | |
| rma_number | varchar(32) | unique, not null | |
| status | return_status | not null | |
| reason | varchar(255) | ||
| requested_at | timestamptz | not null | |
| received_at | timestamptz |
Indexes (1)
(order_id)
Relationships
returns.order_idreferencesorders.idreturn_lines.return_idreferencesreturnsrefunds.return_idreferencesreturns