Remove NewBook room blocking — app never writes to NewBook
Unsellable flag is in-app visibility only; staff mark rooms out of order in NewBook through their own process. NewBook use is now read-only (room sync + occupancy filter). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
6ca395097e
commit
3289a31027
9 changed files with 11 additions and 114 deletions
|
|
@ -101,7 +101,6 @@ export async function initDb() {
|
|||
priority TEXT NOT NULL DEFAULT 'medium', -- low | medium | high | urgent
|
||||
status TEXT NOT NULL DEFAULT 'submitted',
|
||||
unusable BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
newbook_blocked BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
hold_until DATE,
|
||||
due_date DATE,
|
||||
assigned_type TEXT NOT NULL DEFAULT 'staff', -- staff | contractor
|
||||
|
|
@ -140,7 +139,7 @@ export async function initDb() {
|
|||
CREATE TABLE IF NOT EXISTS task_events (
|
||||
id SERIAL PRIMARY KEY,
|
||||
task_id INT NOT NULL REFERENCES tasks(id) ON DELETE CASCADE,
|
||||
event_type TEXT NOT NULL, -- created | status_change | reassigned | comment | photo | cost | newbook_block | newbook_unblock | reopened | edited
|
||||
event_type TEXT NOT NULL, -- created | status_change | reassigned | comment | photo | cost | reopened | edited
|
||||
from_status TEXT,
|
||||
to_status TEXT,
|
||||
note TEXT,
|
||||
|
|
@ -178,8 +177,6 @@ async function seedDefaults() {
|
|||
urgent_notify_email: '',
|
||||
notify_on_assign: true,
|
||||
notify_on_urgent: true,
|
||||
newbook_block_status: 'Maintenance',
|
||||
newbook_unblock_status: 'Dirty',
|
||||
}
|
||||
for (const [key, value] of Object.entries(defaults)) {
|
||||
await pool.query(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue