注文される実際の製品が月ごとに変わるサブスクリプション サイトを作成しています。現在の注文に関連する製品を処理し、前の月に納品された製品を保持する効率的な方法を探しています。
以下の簡単なスキーマ:
注文
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
助けてくれてありがとう..