Files
Homelab-manager/server/drizzle/0096_wall_displays.sql
T
bobbanandClaude Sonnet 5.5 333146e8e3 Add named wall displays: pages, order and speed per screen
An administrator can make named displays (Hall TV, Office monitor) under
Settings -> Share links, each with an address of its own (/wall/hall-tv), the
pages it rotates through in the board's order, and a rotation speed. The
signed-in wall opens one from its address and can switch between them, and a
wall share link can open one too. The address still wins over the display's
speed, then the browser's choice.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 23:04:22 +01:00

12 lines
476 B
SQL

CREATE TABLE `wall_displays` (
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
`name` text NOT NULL,
`slug` text NOT NULL,
`pages` text DEFAULT '[]' NOT NULL,
`rotate_seconds` integer,
`created_by` text,
`created_at` text DEFAULT (current_timestamp) NOT NULL
);
--> statement-breakpoint
CREATE UNIQUE INDEX `wall_displays_slug_unique` ON `wall_displays` (`slug`);--> statement-breakpoint
ALTER TABLE `share_links` ADD `display_id` integer REFERENCES wall_displays(id);