ThreadCount Community edition

Uniform stock management for healthcare linen rooms: the coordinator app, the phone counter and the staff app, for your own server. Built from 2d04e45 on 2026-09-15. Licensed under the Functional Source License (FSL-1.1-ALv2).
This commit is contained in:
ThreadCount
2026-09-16 04:04:31 +10:00
commit 8c86c988c1
424 changed files with 53598 additions and 0 deletions
@@ -0,0 +1,20 @@
-- Public contact form submissions. Deliberately not linked to a Facility: whoever writes in
-- usually doesn't have an account yet.
CREATE TABLE "ContactMessage" (
"id" TEXT NOT NULL,
"name" TEXT NOT NULL,
"role" TEXT NOT NULL DEFAULT '',
"facility" TEXT NOT NULL DEFAULT '',
"email" TEXT NOT NULL,
"topic" TEXT NOT NULL DEFAULT '',
"slot" TEXT NOT NULL DEFAULT '',
"message" TEXT NOT NULL,
"ip" TEXT NOT NULL DEFAULT '',
"emailed" BOOLEAN NOT NULL DEFAULT false,
"handled" BOOLEAN NOT NULL DEFAULT false,
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "ContactMessage_pkey" PRIMARY KEY ("id")
);
CREATE INDEX "ContactMessage_createdAt_idx" ON "ContactMessage"("createdAt");