-- phpMyAdmin SQL Dump
-- version 5.2.2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 22, 2025 at 10:18 PM
-- Server version: 8.0.44
-- PHP Version: 8.4.14

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `zeronoisemarketi_crm`
--

-- --------------------------------------------------------

--
-- Table structure for table `radio_streams`
--

CREATE TABLE `radio_streams` (
  `id` int UNSIGNED NOT NULL,
  `radio_station` varchar(250) NOT NULL,
  `stream_url` text NOT NULL,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `radio_streams`
--

INSERT INTO `radio_streams` (`id`, `radio_station`, `stream_url`, `created_at`) VALUES
(1, 'K-ROCK 105.7 (CIKR-FM)', 'https://rogers-hls.leanstream.co/rogers/kin1057.stream/playlist.m3u8', '2025-11-22 21:27:52'),
(2, 'Country 93.5 (CKXC-FM)', 'http://rogers-hls.leanstream.co/rogers/kin935.stream/playlist.m3u8', '2025-11-22 21:27:52'),
(3, '98.3 FLY FM (CFLY-FM)', 'https://mybroadcasting.streamb.live/SB00409', '2025-11-22 21:27:52');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `radio_streams`
--
ALTER TABLE `radio_streams`
  ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `radio_streams`
--
ALTER TABLE `radio_streams`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

-- --------------------------------------------------------

--
-- Table structure for table `radio_config`
-- Stores system configuration including active stream
--

CREATE TABLE `radio_config` (
  `id` int UNSIGNED NOT NULL,
  `config_key` varchar(100) NOT NULL,
  `config_value` text NOT NULL,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

--
-- Dumping data for table `radio_config`
--

INSERT INTO `radio_config` (`id`, `config_key`, `config_value`, `updated_at`) VALUES
(1, 'active_stream_id', '0', CURRENT_TIMESTAMP),
(2, 'active_stream_url', 'http://default.placeholder.url', CURRENT_TIMESTAMP),
(3, 'active_station_name', 'No Active Station', CURRENT_TIMESTAMP);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `radio_config`
--
ALTER TABLE `radio_config`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `config_key` (`config_key`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `radio_config`
--
ALTER TABLE `radio_config`
  MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

COMMIT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
