143fe3d488
- Implemented clean MVC architecture with Router, Controller, and Model base classes - Created database migrations for users, bands, bookings, reviews, and availability - Set up Tailwind CSS with yellow color scheme and modern design - Added Alpine.js for reactive JavaScript components - Configured Vite for asset building and hot module replacement - Created authentication and role-based middleware - Implemented helper functions and configuration system - Added comprehensive README with setup instructions - Configured Apache with proper rewrite rules and security headers - Set up Composer and npm package management with modern dependencies
22 lines
851 B
SQL
22 lines
851 B
SQL
-- Migration: Create users table
|
|
-- Created: 2025-12-02
|
|
|
|
CREATE TABLE IF NOT EXISTS users (
|
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
|
email VARCHAR(255) NOT NULL UNIQUE,
|
|
password VARCHAR(255) NOT NULL,
|
|
name VARCHAR(255) NOT NULL,
|
|
role ENUM('admin', 'band', 'customer') NOT NULL DEFAULT 'customer',
|
|
email_verified_at TIMESTAMP NULL,
|
|
verification_token VARCHAR(64) NULL,
|
|
reset_token VARCHAR(64) NULL,
|
|
reset_token_expires TIMESTAMP NULL,
|
|
is_active BOOLEAN DEFAULT TRUE,
|
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
|
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
|
INDEX idx_email (email),
|
|
INDEX idx_role (role),
|
|
INDEX idx_verification_token (verification_token),
|
|
INDEX idx_reset_token (reset_token)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|