feat(catalog): Add werkmeister as a draft product, not for sale
Migration 0014 seeds the werkmeister product (platform/werkmeister ADR 0001) disabled and without SKUs; store.DefaultProducts mirrors it. SKUs follow with pricing (<AREA>-<PRODUCT>-<CLD|OPR>-<STD|BUS|ENT>), together with the ERPNext items erpsetup checks against. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
271c23e5f2
commit
85651f4567
3 files changed
+21
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user