cbf533d90b
Uniform stock management for healthcare linen rooms: the coordinator app, the phone counter and the staff app, for your own server. Built from 440e645 on 2026-09-13. Licensed under the Functional Source License (FSL-1.1-ALv2).
12 lines
771 B
SQL
12 lines
771 B
SQL
-- The ceiling for the groups that never had one.
|
|
--
|
|
-- Operational Officers have always had a cap. Kitchen, retail, nutrition, security and the
|
|
-- ambassadors have had none at all, so a request from one of them was weighed against nothing but
|
|
-- the manager's patience. Six sets — twelve garments — is the figure the owner has set, and unlike
|
|
-- the operational allowance nothing releases it on its own: the manager approves each set up to
|
|
-- this number. Nursing never reaches it, because the NUM's signature is their control.
|
|
--
|
|
-- The default is not optional here. This runs against a live linen room with a row per facility,
|
|
-- and a NOT NULL with nothing behind it fails on the first one.
|
|
ALTER TABLE "Facility" ADD COLUMN "capSets" INTEGER NOT NULL DEFAULT 6;
|