return_lines table
The return_lines table in the E-commerce Database Schema schema has 5 columns, keyed by id, with 2 foreign keys to returns and order_lines.
restock false covers damaged goods, which come back but never re-enter sellable stock.
Columns (5)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| return_id | uuid | not null, references returns.id | |
| order_line_id | uuid | not null, references order_lines.id | |
| quantity | integer | not null | |
| restock | boolean | not null |
Relationships
return_lines.return_idreferencesreturns.idreturn_lines.order_line_idreferencesorder_lines.id