feat(catalog): Add werkmeister as a draft product, not for sale #69

Merged
sharang merged 1 commits from feat/werkmeister-catalogue-draft into main 2026-10-13 20:36:03 +00:00
3 changed files with 21 additions and 0 deletions

No files matched your search

+10
View File
@@ -8,6 +8,7 @@ import (
)
// DefaultProducts mirrors the seed rows of migrations/0003_products.up.sql
// and 0014_werkmeister_product.up.sql
// for the Memory store. Keep the two in sync.
func DefaultProducts() []Product {
now := time.Now().UTC()
@@ -40,6 +41,15 @@ func DefaultProducts() []Product {
Addons: []ProductAddon{},
PlansRequired: plans, SupportsTrial: true, TrialDays: 14, Enabled: true, SortOrder: 30, CreatedAt: now, UpdatedAt: now,
},
{
// Draft, not for sale (platform/werkmeister ADR 0001): no SKUs until pricing.
Key: "werkmeister", Name: "Werkmeister", Type: "standalone",
Description: "Visual workflow builder: blocks for the booked BreakPilot products, composable and versioned.",
LaunchURLs: map[string]string{"stage": "https://werkmeister-stage.breakpilot.com", "prod": "https://werkmeister.breakpilot.com"},
ProvisionURLs: map[string]string{},
SKUs: []string{}, Addons: []ProductAddon{},
PlansRequired: plans, SupportsTrial: true, TrialDays: 14, Enabled: false, SortOrder: 40, CreatedAt: now, UpdatedAt: now,
},
{
Key: "compliance", Name: "Compliance", Type: "standalone",
Description: "DSFA / TOM / VVT generation; evidence capture.",
@@ -0,0 +1 @@
DELETE FROM products WHERE key = 'werkmeister';
@@ -0,0 +1,10 @@
-- Werkmeister (platform/werkmeister ADR 0001): visual workflow builder.
-- Draft, not for sale: disabled and without SKUs until pricing is decided
-- (scheme <AREA>-<PRODUCT>-<CLD|OPR>-<STD|BUS|ENT>, cloud and on-prem tiers).
INSERT INTO products (key, name, description, type, launch_urls, skus, addons, plans_required, supports_trial, trial_days, enabled, sort_order) VALUES
('werkmeister', 'Werkmeister',
'Visual workflow builder: blocks for the booked BreakPilot products, composable and versioned.',
'standalone',
'{"stage": "https://werkmeister-stage.breakpilot.com", "prod": "https://werkmeister.breakpilot.com"}',
'[]', '[]', ARRAY['standard', 'business', 'enterprise'], TRUE, 14, FALSE, 40)
ON CONFLICT (key) DO NOTHING;