-- ============================================================================
-- CREATE DJANGO_SESSION TABLE
-- ============================================================================
-- This creates the django_session table needed for user login sessions
-- ============================================================================

USE acbptxvs_branch_system;

-- Create django_session table
CREATE TABLE IF NOT EXISTS `django_session` (
  `session_key` varchar(40) NOT NULL,
  `session_data` longtext NOT NULL,
  `expire_date` datetime(6) NOT NULL,
  PRIMARY KEY (`session_key`),
  KEY `django_session_expire_date_a5c62663` (`expire_date`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

-- Verify table was created
SHOW TABLES LIKE 'django_session';

SELECT 'django_session table created successfully!' as status;
