Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

465 B
Raw Blame

ALTER TABLE "lessonCompletion"
DROP CONSTRAINT IF EXISTS "lessonCompletion_userId_fkey";
ALTER TABLE "lessonCompletion"
ADD CONSTRAINT "lessonCompletion_userId_fkey"
FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE;

ALTER TABLE "challengeAttempt"
DROP CONSTRAINT IF EXISTS "challengeAttempt_userId_fkey";
ALTER TABLE "challengeAttempt"
ADD CONSTRAINT "challengeAttempt_userId_fkey"
FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE CASCADE;