annoucement banners, calendar pdf export, vehicle booking quck-add, even quick-add

This commit is contained in:
Matthias Hochmeister
2026-03-12 11:47:08 +01:00
parent 71a04aee89
commit cd68bd3795
15 changed files with 997 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
CREATE TYPE banner_level AS ENUM ('info', 'important', 'critical');
CREATE TABLE IF NOT EXISTS announcement_banners (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
message TEXT NOT NULL,
level banner_level NOT NULL DEFAULT 'info',
starts_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
ends_at TIMESTAMPTZ,
created_by UUID REFERENCES users(id) ON DELETE SET NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
CREATE INDEX idx_banners_active ON announcement_banners (starts_at, ends_at)
WHERE ends_at IS NULL OR ends_at > NOW();