11 lines
418 B
SQL
11 lines
418 B
SQL
-- Create audio_assets table
|
|
CREATE TABLE IF NOT EXISTS audio_assets (
|
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
|
filename VARCHAR(255) NOT NULL UNIQUE,
|
|
display_name VARCHAR(255) NOT NULL,
|
|
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
|
);
|
|
|
|
-- Pre-fill with sahur.mp3 if not exists
|
|
INSERT IGNORE INTO audio_assets (filename, display_name) VALUES ('sahur.mp3', 'Sahur Notification');
|