Hosting-Produkte: Staffelpreise nach Laufzeit (1/3/6/12/24 Monate)
This commit is contained in:
parent
e0fd57532d
commit
5efe37ecc0
12 changed files with 145 additions and 28 deletions
9
migrations/018_product_term_prices.sql
Normal file
9
migrations/018_product_term_prices.sql
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
-- Staffelpreise nach Laufzeit (z. B. 1/3/6/12/24 Monate), zusätzlich zum Basispreis der Version.
|
||||
-- Optional: ohne Einträge verhält sich ein Produkt genau wie bisher (ein fester Preis).
|
||||
CREATE TABLE product_term_prices (
|
||||
id CHAR(36) PRIMARY KEY,
|
||||
product_version_id CHAR(36) NOT NULL REFERENCES product_versions(id),
|
||||
term_months INT NOT NULL,
|
||||
recurring_cents INT NOT NULL, -- Preis für die gesamte gewählte Laufzeit (nicht pro Monat)
|
||||
UNIQUE KEY uq_ptp (product_version_id, term_months)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
Loading…
Add table
Add a link
Reference in a new issue