Add USB checkout system and SSO profile page
New Features: - USB Device checkout/check-in system with barcode scanning - displayusb.asp: List all USB devices with status - addusb.asp: Add new USB devices via barcode scan - checkout_usb.asp/savecheckout_usb.asp: Check out USB to SSO - checkin_usb.asp/savecheckin_usb.asp: Check in with wipe confirmation - usb_history.asp: Full checkout history with filters - api_usb.asp: JSON API for AJAX lookups - displayprofile.asp: SSO profile page showing user info and USB history - Date/time format changed to 12-hour (MM/DD/YYYY h:mm AM/PM) - SSO links in USB history now link to profile page via search Database: - New machinetypeid 44 for USB devices - New usb_checkouts table for tracking checkouts Cleanup: - Removed v2 folder (duplicate/old files) - Removed old debug/test files - Removed completed migration documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
33
sql/migration_phase4/create_tv_slides_table.sql
Normal file
33
sql/migration_phase4/create_tv_slides_table.sql
Normal file
@@ -0,0 +1,33 @@
|
||||
-- TV Dashboard Slides Management
|
||||
-- Run this script to create the tables for TV slide management
|
||||
|
||||
-- Table to store slide presentations/folders
|
||||
CREATE TABLE IF NOT EXISTS tv_presentations (
|
||||
presentationid INT AUTO_INCREMENT PRIMARY KEY,
|
||||
name VARCHAR(100) NOT NULL,
|
||||
folder_path VARCHAR(500) NOT NULL COMMENT 'Full path or subfolder name under base path',
|
||||
interval_seconds INT DEFAULT 10 COMMENT 'Seconds between slides',
|
||||
isactive TINYINT(1) DEFAULT 0 COMMENT 'Only one should be active at a time',
|
||||
created_date DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
lastupdated DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
notes VARCHAR(500)
|
||||
);
|
||||
|
||||
-- Table to store individual slides (optional - for when you want to manage slides in DB)
|
||||
CREATE TABLE IF NOT EXISTS tv_slides (
|
||||
slideid INT AUTO_INCREMENT PRIMARY KEY,
|
||||
presentationid INT NOT NULL,
|
||||
filename VARCHAR(255) NOT NULL,
|
||||
display_order INT DEFAULT 0,
|
||||
isactive TINYINT(1) DEFAULT 1,
|
||||
created_date DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY (presentationid) REFERENCES tv_presentations(presentationid) ON DELETE CASCADE
|
||||
);
|
||||
|
||||
-- Insert default presentation
|
||||
INSERT INTO tv_presentations (name, folder_path, interval_seconds, isactive, notes)
|
||||
VALUES ('Default', 'S:\\ProcessData\\CommDisplay\\ShopSS', 10, 1, 'Default presentation folder');
|
||||
|
||||
-- Example: Add a holiday presentation (inactive by default)
|
||||
-- INSERT INTO tv_presentations (name, folder_path, interval_seconds, isactive, notes)
|
||||
-- VALUES ('Christmas 2025', 'Christmas2025', 10, 0, 'Holiday slides - subfolder of base path');
|
||||
Reference in New Issue
Block a user