-1

注文される実際の製品が月ごとに変わるサブスクリプション サイトを作成しています。現在の注文に関連する製品を処理し、前の月に納品された製品を保持する効率的な方法を探しています。

以下の簡単なスキーマ:

注文

id
customer_id
subscription_id
shipping_...
billing_...

order_products

id
order_id
product_id
quantity
price
total

order_invoices

id
order_id
date_shipped

order_invoice_products

id
order_invoice_id
product_id

サブスクリプション

id

助けてくれてありがとう..

4

1 に答える 1

0

注文の日付 (月) を記録する必要があります。このためのフィールドを注文テーブルに追加します。

于 2012-10-27T15:44:23.833 に答える