morz-infoboard/server/backend/internal/db/migrations/004_screen_status.sql
2026-03-26 23:05:15 +01:00

8 lines
367 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- Migration 004: Display-Steuerung screen_status
-- Speichert den zuletzt vom Agent gemeldeten Display-Zustand pro Screen.
create table if not exists screen_status (
screen_id text primary key references screens(id) on delete cascade,
display_state text not null default 'unknown',
reported_at timestamptz not null default now()
);