Sindbad~EG File Manager

Current Path : /home/copmadinaarea/thecopmadinaarea.org/portal/sql/
Upload File :
Current File : /home/copmadinaarea/thecopmadinaarea.org/portal/sql/page_content.sql

-- Create table for managing page content
CREATE TABLE IF NOT EXISTS `page_content` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `page_name` varchar(50) NOT NULL,
  `section_name` varchar(100) NOT NULL,
  `content_key` varchar(100) NOT NULL,
  `content_value` text NOT NULL,
  `content_type` enum('text','textarea','number','email','phone') DEFAULT 'text',
  `display_order` int(11) DEFAULT 0,
  `is_active` tinyint(1) DEFAULT 1,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `updated_by` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `unique_content` (`page_name`, `section_name`, `content_key`),
  KEY `updated_by` (`updated_by`),
  CONSTRAINT `page_content_ibfk_1` FOREIGN KEY (`updated_by`) REFERENCES `users` (`id`) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

-- Insert default content for About Us page
INSERT INTO `page_content` (`page_name`, `section_name`, `content_key`, `content_value`, `content_type`, `display_order`) VALUES
('about', 'hero', 'title', 'About Our System', 'text', 1),
('about', 'hero', 'subtitle', 'Empowering churches with modern technology', 'text', 2),
('about', 'mission', 'title', 'Our Mission', 'text', 3),
('about', 'mission', 'description', 'Our Church Membership Management System is designed to help religious organizations efficiently manage their communities. Built with modern technology and user-friendly interfaces, it provides all the tools needed to maintain member records, organize events, and foster stronger community connections.', 'textarea', 4),
('about', 'statistics', 'stat1_number', '500+', 'text', 5),
('about', 'statistics', 'stat1_label', 'Active Members', 'text', 6),
('about', 'statistics', 'stat2_number', '50+', 'text', 7),
('about', 'statistics', 'stat2_label', 'Events Managed', 'text', 8),
('about', 'statistics', 'stat3_number', '24/7', 'text', 9),
('about', 'statistics', 'stat3_label', 'System Availability', 'text', 10),
('about', 'features', 'feature1_title', 'Easy to Use', 'text', 11),
('about', 'features', 'feature1_description', 'Intuitive interface designed for users of all technical levels', 'textarea', 12),
('about', 'features', 'feature2_title', 'Fast Performance', 'text', 13),
('about', 'features', 'feature2_description', 'Optimized for speed with quick load times and responsive design', 'textarea', 14),
('about', 'features', 'feature3_title', 'Secure', 'text', 15),
('about', 'features', 'feature3_description', 'Bank-level security with encrypted data and role-based access', 'textarea', 16),
('about', 'features', 'feature4_title', 'Support', 'text', 17),
('about', 'features', 'feature4_description', 'Dedicated support team ready to assist you anytime', 'textarea', 18);

-- Insert default content for Contact page
INSERT INTO `page_content` (`page_name`, `section_name`, `content_key`, `content_value`, `content_type`, `display_order`) VALUES
('contact', 'hero', 'title', 'Get in Touch', 'text', 1),
('contact', 'hero', 'subtitle', 'We''re here to help you with any questions', 'text', 2),
('contact', 'info', 'email', 'support@churchsystem.com', 'email', 3),
('contact', 'info', 'phone', '+1 (555) 123-4567', 'phone', 4),
('contact', 'info', 'address_line1', '123 Church Street', 'text', 5),
('contact', 'info', 'address_line2', 'City, State 12345', 'text', 6),
('contact', 'hours', 'weekday', 'Monday - Friday', 'text', 7),
('contact', 'hours', 'weekday_time', '9:00 AM - 5:00 PM', 'text', 8),
('contact', 'hours', 'weekend', 'Saturday - Sunday', 'text', 9),
('contact', 'hours', 'weekend_time', 'Closed', 'text', 10);

-- Insert default content for Features page
INSERT INTO `page_content` (`page_name`, `section_name`, `content_key`, `content_value`, `content_type`, `display_order`) VALUES
('features', 'hero', 'title', 'Powerful Features', 'text', 1),
('features', 'hero', 'subtitle', 'Everything you need to manage your church community effectively', 'text', 2),
('features', 'feature1', 'title', 'Member Management', 'text', 3),
('features', 'feature1', 'description', 'Comprehensive member profiles with 44+ fields, contact information, membership tracking, and hierarchical access control for different levels.', 'textarea', 4),
('features', 'feature2', 'title', 'Event Management', 'text', 5),
('features', 'feature2', 'description', 'Schedule and manage church events, services, conferences, and special occasions with registration and attendance tracking.', 'textarea', 6),
('features', 'feature3', 'title', 'Membership Cards', 'text', 7),
('features', 'feature3', 'description', 'Generate and print professional membership ID cards with unique card numbers, QR codes, and tracking capabilities.', 'textarea', 8),
('features', 'feature4', 'title', 'Reports & Analytics', 'text', 9),
('features', 'feature4', 'description', 'Generate detailed reports and gain insights into your community with export capabilities in multiple formats (Excel, PDF).', 'textarea', 10),
('features', 'feature5', 'title', 'Communication', 'text', 11),
('features', 'feature5', 'description', 'Send notifications, emails, and SMS to keep everyone connected with customizable templates and bulk messaging.', 'textarea', 12),
('features', 'feature6', 'title', 'Secure & Reliable', 'text', 13),
('features', 'feature6', 'description', 'Role-based access control, audit logging, and secure authentication to protect sensitive membership data.', 'textarea', 14);

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists