-- ============================================================================
-- EasyStream - Complete Database Schema for Docker Deployment
-- ============================================================================
-- This file is automatically loaded by docker-entrypoint-initdb.d
-- It creates all tables needed for the EasyStream platform
--
-- Generated: 2025-10-25
-- Source: Combines easystream.sql + add_advanced_features.sql
-- ============================================================================

-- Use the easystream database (already created by Docker environment)
USE `easystream`;

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 */;

-- Load main schema (all tables)
-- This will be loaded from the main SQL file via Docker init
SOURCE /docker-entrypoint-initdb.d/main_schema.sql;

-- Load advanced features
-- This will be loaded from the advanced features SQL file
SOURCE /docker-entrypoint-initdb.d/advanced_features.sql;

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 */;
