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)

Columns of the return_lines table
ColumnTypeConstraintsDescription
iduuidprimary key
return_iduuidnot null, references returns.id
order_line_iduuidnot null, references order_lines.id
quantityintegernot null
restockbooleannot null

Relationships