⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.108
Server IP:
97.74.83.112
Server:
Linux 112.83.74.97.host.secureserver.net 5.14.0-611.54.6.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 04:23:18 EDT 2026 x86_64
Server Software:
Apache
PHP Version:
8.2.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
trinadezambia
/
public_html
/
View File Name :
trinadezambia_demo_schoolmanagement_new.sql
-- phpMyAdmin SQL Dump -- version 5.2.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: May 12, 2026 at 05:46 PM -- Server version: 5.7.44 -- PHP Version: 8.1.34 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: `trinadezambia_demo_schoolmanagement_new` -- -- -------------------------------------------------------- -- -- Table structure for table `addons` -- CREATE TABLE `addons` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `price` decimal(64,2) NOT NULL, `feature_id` bigint(20) UNSIGNED NOT NULL, `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0 => Inactive, 1 => Active', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `addon_subscriptions` -- CREATE TABLE `addon_subscriptions` ( `id` bigint(20) UNSIGNED NOT NULL, `subscription_id` bigint(20) UNSIGNED DEFAULT NULL, `school_id` bigint(20) UNSIGNED NOT NULL, `feature_id` bigint(20) UNSIGNED NOT NULL, `price` decimal(64,2) NOT NULL, `start_date` date NOT NULL, `end_date` date NOT NULL, `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '0 => Discontinue next billing, 1 => Continue', `payment_transaction_id` bigint(20) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `contact_inquiry` -- CREATE TABLE `contact_inquiry` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `subject` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `message` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `contact_inquiry` -- INSERT INTO `contact_inquiry` (`id`, `name`, `email`, `subject`, `message`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'khlgngttih', 'vzkqrfrn@immenseignite.info', NULL, 'fyekhtvdelxpiegivoeekuythpggse', '2026-05-06 12:23:09', '2026-05-06 12:23:09', NULL), (2, 'xhiwulxueu', 'uldrpelk@immenseignite.info', NULL, 'kwsdwtyeurpulfyyrzvtqyygtfqstl', '2026-05-06 12:23:34', '2026-05-06 12:23:34', NULL), (3, 'oqmrhiysoe', 'zwuufzph@immenseignite.info', NULL, 'rpyurmliizsogyhjjfixyqdsjiouxd', '2026-05-06 12:24:01', '2026-05-06 12:24:01', NULL); -- -------------------------------------------------------- -- -- Table structure for table `extra_school_datas` -- CREATE TABLE `extra_school_datas` ( `id` bigint(20) UNSIGNED NOT NULL, `school_inquiry_id` bigint(20) UNSIGNED DEFAULT NULL, `school_id` bigint(20) UNSIGNED DEFAULT NULL, `form_field_id` bigint(20) UNSIGNED NOT NULL, `data` text COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `uuid` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `faqs` -- CREATE TABLE `faqs` ( `id` bigint(20) UNSIGNED NOT NULL, `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `description` text COLLATE utf8mb4_unicode_ci NOT NULL, `school_id` bigint(20) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `features` -- CREATE TABLE `features` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `is_default` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0 => No, 1 => Yes', `status` int(11) NOT NULL DEFAULT '1', `required_vps` int(11) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `features` -- INSERT INTO `features` (`id`, `name`, `is_default`, `status`, `required_vps`, `created_at`, `updated_at`) VALUES (1, 'Student Management', 1, 1, 0, '2025-12-13 11:39:16', '2025-12-13 11:39:36'), (2, 'Academics Management', 1, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (3, 'Slider Management', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (4, 'Teacher Management', 1, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (5, 'Session Year Management', 1, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (6, 'Holiday Management', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (7, 'Timetable Management', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (8, 'Attendance Management', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (9, 'Exam Management', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (10, 'Lesson Management', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (11, 'Assignment Management', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (12, 'Announcement Management', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (13, 'Staff Management', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (14, 'Expense Management', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (15, 'Staff Leave Management', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (16, 'Fees Management', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (17, 'School Gallery Management', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (18, 'ID Card - Certificate Generation', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (19, 'Website Management', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (20, 'Chat Module', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'), (21, 'Transportation Module', 0, 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'); -- -------------------------------------------------------- -- -- Table structure for table `feature_sections` -- CREATE TABLE `feature_sections` ( `id` bigint(20) UNSIGNED NOT NULL, `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `heading` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `rank` int(11) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `feature_section_lists` -- CREATE TABLE `feature_section_lists` ( `id` bigint(20) UNSIGNED NOT NULL, `feature_section_id` bigint(20) UNSIGNED NOT NULL, `feature` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `description` text COLLATE utf8mb4_unicode_ci, `image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `files` -- CREATE TABLE `files` ( `id` bigint(20) UNSIGNED NOT NULL, `modal_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `modal_id` bigint(20) UNSIGNED NOT NULL, `file_name` varchar(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `file_thumbnail` varchar(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `type` tinytext COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '1 = File Upload, 2 = Youtube Link, 3 = Video Upload, 4 = Other Link', `file_url` varchar(1024) COLLATE utf8mb4_unicode_ci NOT NULL, `school_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `form_fields` -- CREATE TABLE `form_fields` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL, `type` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'text,number,textarea,dropdown,checkbox,radio,fileupload', `is_required` tinyint(1) NOT NULL DEFAULT '0', `default_values` text COLLATE utf8mb4_unicode_ci COMMENT 'values of radio,checkbox,dropdown,etc', `school_id` bigint(20) UNSIGNED DEFAULT NULL, `rank` int(11) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `guidances` -- CREATE TABLE `guidances` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `link` text COLLATE utf8mb4_unicode_ci ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `jobs` -- CREATE TABLE `jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `queue` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `attempts` tinyint(3) UNSIGNED NOT NULL, `reserved_at` int(10) UNSIGNED DEFAULT NULL, `available_at` int(10) UNSIGNED NOT NULL, `created_at` int(10) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `languages` -- CREATE TABLE `languages` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(512) COLLATE utf8mb4_unicode_ci NOT NULL, `code` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, `file` varchar(512) COLLATE utf8mb4_unicode_ci NOT NULL, `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '1=>active', `is_rtl` tinyint(4) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `languages` -- INSERT INTO `languages` (`id`, `name`, `code`, `file`, `status`, `is_rtl`, `created_at`, `updated_at`) VALUES (1, 'English', 'en', 'en.json', 1, 0, '2025-12-13 11:39:36', '2025-12-13 11:39:36'); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2019_12_14_000001_create_personal_access_tokens_table', 1), (5, '2022_04_01_091033_create_permission_tables', 1), (6, '2022_04_01_105826_all_tables', 1), (7, '2023_11_16_134449_version1-0-1', 1), (8, '2023_12_07_120054_version1_1_0', 1), (9, '2024_01_30_092228_version1_2_0', 1), (10, '2024_03_12_173521_version1_3_0', 1), (11, '2024_05_21_094714_version1_3_2', 1), (12, '2024_07_21_093657_version1_4_0', 1), (13, '2024_08_08_094709_version1_4_1', 1), (14, '2024_10_17_112347_version1_5_0', 1), (15, '2025_01_22_102146_version1_5_2', 1), (16, '2025_04_10_100137_version1_5_4', 1), (17, '2025_05_02_095829_version1_6_0', 1), (18, '2025_07_28_123928_version1_7_0', 1), (19, '2025_09_09_125830_version1_8_0', 1); -- -------------------------------------------------------- -- -- Table structure for table `model_has_permissions` -- CREATE TABLE `model_has_permissions` ( `permission_id` bigint(20) UNSIGNED NOT NULL, `model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `model_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `model_has_roles` -- CREATE TABLE `model_has_roles` ( `role_id` bigint(20) UNSIGNED NOT NULL, `model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `model_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `model_has_roles` -- INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES (1, 'App\\Models\\User', 1); -- -------------------------------------------------------- -- -- Table structure for table `packages` -- CREATE TABLE `packages` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `tagline` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `student_charge` double(8,2) NOT NULL, `staff_charge` double(8,2) NOT NULL, `days` int(11) NOT NULL DEFAULT '1', `type` int(11) NOT NULL DEFAULT '1' COMMENT '0 => Prepaid, 1 => Postpaid', `no_of_students` int(11) NOT NULL DEFAULT '0', `no_of_staffs` int(11) NOT NULL DEFAULT '0', `charges` double(64,4) NOT NULL, `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0 => Unpublished, 1 => Published', `is_trial` int(11) NOT NULL DEFAULT '0', `highlight` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0 => No, 1 => Yes', `rank` int(11) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `package_features` -- CREATE TABLE `package_features` ( `id` bigint(20) UNSIGNED NOT NULL, `package_id` bigint(20) UNSIGNED NOT NULL, `feature_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `payment_configurations` -- CREATE TABLE `payment_configurations` ( `id` bigint(20) UNSIGNED NOT NULL, `payment_method` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `api_key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `secret_key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `webhook_secret_key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `bank_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `account_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `account_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `currency_code` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 - Disabled, 1 - Enabled', `school_id` bigint(20) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `payment_transactions` -- CREATE TABLE `payment_transactions` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL, `amount` double(64,2) NOT NULL, `payment_gateway` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `order_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'order_id / payment_intent_id', `payment_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `payment_signature` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `payment_status` enum('failed','succeed','pending') COLLATE utf8mb4_unicode_ci NOT NULL, `school_id` bigint(20) UNSIGNED DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `permissions` -- CREATE TABLE `permissions` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `permissions` -- INSERT INTO `permissions` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES (1, 'role-list', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (2, 'role-create', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (3, 'role-edit', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (4, 'role-delete', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (5, 'language-list', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (6, 'language-create', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (7, 'language-edit', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (8, 'language-delete', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (9, 'schools-list', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (10, 'schools-create', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (11, 'schools-edit', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (12, 'schools-delete', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (13, 'package-list', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (14, 'package-create', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (15, 'package-edit', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (16, 'package-delete', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (17, 'addons-list', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (18, 'addons-create', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (19, 'addons-edit', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (20, 'addons-delete', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (21, 'guidance-list', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (22, 'guidance-create', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (23, 'guidance-edit', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (24, 'guidance-delete', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (25, 'system-setting-manage', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (26, 'fcm-setting-create', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (27, 'email-setting-create', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (28, 'privacy-policy', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (29, 'contact-us', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (30, 'about-us', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (31, 'terms-condition', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (32, 'app-settings', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (33, 'subscription-view', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (34, 'staff-list', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (35, 'staff-create', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (36, 'staff-edit', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (37, 'staff-delete', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (38, 'faqs-list', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (39, 'faqs-create', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (40, 'faqs-edit', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (41, 'faqs-delete', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (42, 'fcm-setting-manage', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (43, 'front-site-setting', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (44, 'payment-settings', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (45, 'subscription-settings', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (46, 'subscription-change-bills', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (47, 'school-terms-condition', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (48, 'subscription-bill-payment', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (49, 'web-settings', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (50, 'email-template', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (51, 'custom-school-email', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (52, 'database-backup', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (53, 'school-custom-field-list', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (54, 'school-custom-field-create', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (55, 'school-custom-field-edit', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (56, 'school-custom-field-delete', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'), (57, 'contact-inquiry-list', 'web', '2025-12-13 11:39:35', '2025-12-13 11:39:35'); -- -------------------------------------------------------- -- -- Table structure for table `personal_access_tokens` -- CREATE TABLE `personal_access_tokens` ( `id` bigint(20) UNSIGNED NOT NULL, `tokenable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `tokenable_id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, `abilities` text COLLATE utf8mb4_unicode_ci, `last_used_at` timestamp NULL DEFAULT NULL, `expires_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `roles` -- CREATE TABLE `roles` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `school_id` bigint(20) UNSIGNED DEFAULT NULL, `custom_role` tinyint(1) NOT NULL DEFAULT '1', `editable` tinyint(1) NOT NULL DEFAULT '1', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `roles` -- INSERT INTO `roles` (`id`, `name`, `guard_name`, `school_id`, `custom_role`, `editable`, `created_at`, `updated_at`) VALUES (1, 'Super Admin', 'web', NULL, 0, 0, '2025-12-13 11:39:35', '2025-12-13 11:39:35'); -- -------------------------------------------------------- -- -- Table structure for table `role_has_permissions` -- CREATE TABLE `role_has_permissions` ( `permission_id` bigint(20) UNSIGNED NOT NULL, `role_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `role_has_permissions` -- INSERT INTO `role_has_permissions` (`permission_id`, `role_id`) VALUES (1, 1), (2, 1), (3, 1), (4, 1), (5, 1), (6, 1), (7, 1), (8, 1), (9, 1), (10, 1), (11, 1), (12, 1), (13, 1), (14, 1), (15, 1), (16, 1), (17, 1), (18, 1), (19, 1), (20, 1), (21, 1), (22, 1), (23, 1), (24, 1), (25, 1), (26, 1), (27, 1), (28, 1), (29, 1), (30, 1), (31, 1), (32, 1), (33, 1), (34, 1), (35, 1), (36, 1), (37, 1), (38, 1), (39, 1), (40, 1), (41, 1), (42, 1), (45, 1), (46, 1), (47, 1), (48, 1), (49, 1), (51, 1), (52, 1), (53, 1), (54, 1), (55, 1), (56, 1), (57, 1); -- -------------------------------------------------------- -- -- Table structure for table `schools` -- CREATE TABLE `schools` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `support_phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `support_email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `tagline` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `logo` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `admin_id` bigint(20) UNSIGNED DEFAULT NULL COMMENT 'user_id', `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0 => Deactivate, 1 => Active', `installed` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0: Not installed, 1: Installed', `domain` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `database_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `domain_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT 'default', `type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT 'custom', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `school_inquiries` -- CREATE TABLE `school_inquiries` ( `id` bigint(20) UNSIGNED NOT NULL, `school_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `school_address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `school_phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `school_email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `school_tagline` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `date` date NOT NULL, `status` int(11) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `school_settings` -- CREATE TABLE `school_settings` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `data` text COLLATE utf8mb4_unicode_ci NOT NULL, `type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'datatype like string , file etc', `school_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `staffs` -- CREATE TABLE `staffs` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL, `qualification` varchar(512) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `salary` double NOT NULL DEFAULT '0', `joining_date` date DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `staff_support_schools` -- CREATE TABLE `staff_support_schools` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL, `school_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `subscriptions` -- CREATE TABLE `subscriptions` ( `id` bigint(20) UNSIGNED NOT NULL, `school_id` bigint(20) UNSIGNED NOT NULL, `package_id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `student_charge` decimal(64,2) NOT NULL, `staff_charge` decimal(64,2) NOT NULL, `start_date` date NOT NULL, `end_date` date NOT NULL, `package_type` int(11) NOT NULL DEFAULT '1' COMMENT '0 => Prepaid, 1 => Postpaid', `no_of_students` int(11) NOT NULL DEFAULT '0', `no_of_staffs` int(11) NOT NULL DEFAULT '0', `charges` decimal(64,2) NOT NULL, `billing_cycle` int(11) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `subscription_bills` -- CREATE TABLE `subscription_bills` ( `id` bigint(20) UNSIGNED NOT NULL, `subscription_id` bigint(20) UNSIGNED NOT NULL, `description` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `amount` decimal(64,2) NOT NULL, `total_student` bigint(20) NOT NULL, `total_staff` bigint(20) NOT NULL, `payment_transaction_id` bigint(20) UNSIGNED DEFAULT NULL, `due_date` date NOT NULL, `school_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `subscription_features` -- CREATE TABLE `subscription_features` ( `id` bigint(20) UNSIGNED NOT NULL, `subscription_id` bigint(20) UNSIGNED NOT NULL, `feature_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `system_settings` -- CREATE TABLE `system_settings` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `data` text COLLATE utf8mb4_unicode_ci NOT NULL, `type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'datatype like string , file etc' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `system_settings` -- INSERT INTO `system_settings` (`id`, `name`, `data`, `type`) VALUES (1, 'hero_title_1', 'Opt for eSchool Saas 14+ robust features for an enhanced educational experience.', 'text'), (2, 'hero_title_2', 'Top Rated Instructors', 'text'), (3, 'about_us_title', 'A modern and unique style', 'text'), (4, 'about_us_heading', 'Why it is best?', 'text'), (5, 'about_us_description', 'eSchool is the pinnacle of school management, offering advanced technology, user-friendly features, and personalized solutions. It simplifies communication, streamlines administrative tasks, and elevates the educational experience for all stakeholders. With eSchool, excellence in education management is guaranteed.', 'text'), (6, 'about_us_points', 'Affordable price,Easy to manage admin panel,Data Security', 'text'), (7, 'custom_package_status', '1', 'text'), (8, 'custom_package_description', 'Tailor your experience with our custom package options. From personalized services to bespoke solutions, we offer flexibility to meet your unique needs.', 'text'), (9, 'download_our_app_description', 'Join the ranks of true trivia champions and quench your thirst for knowledge with Masters of Trivia - the ultimate quiz app designed to test your wits and unlock a world of fun facts. Challenge your brain, compete with friends, and discover fascinating tidbits from diverse categories. Don\'t miss out on the exhilarating experience that awaits you - get started now!Join the ranks of true trivia champions and quench your thirst for knowledge with Masters of Trivia - the ultimate quiz app designed to test your wits and unlock a world of fun facts.', 'text'), (10, 'theme_primary_color', '#56cc99', 'text'), (11, 'theme_secondary_color', '#215679', 'text'), (12, 'theme_secondary_color_1', '#38a3a5', 'text'), (13, 'theme_primary_background_color', '#f2f5f7', 'text'), (14, 'theme_text_secondary_color', '#5c788c', 'text'), (15, 'tag_line', 'Transform School Management With eSchool SaaS', 'text'), (16, 'mobile', 'xxxxxxxxxx', 'text'), (17, 'hero_description', 'Experience the future of education with our eSchool SaaS platform. Streamline attendance, assignments, exams, and more. Elevate your school\'s efficiency and engagement.', 'text'), (18, 'display_school_logos', '1', 'text'), (19, 'display_counters', '1', 'text'), (20, 'email_template_school_registration', '<p>Dear {school_admin_name},</p> <p>Welcome to {system_name}!</p> <p>We are excited to have you as part of our educational community. Below are your registration details to access the system:</p> <hr> <p><strong>School Name:</strong> {school_name}</p> <p><strong>System URL:</strong> {url}</p> <p><strong>Your Login Credentials:</strong></p> <ul> <li><strong>Email:</strong> {email}</li> <li><strong>Password:</strong> {password}</li> <li><strong>School Code:</strong> {code}</li> </ul> <hr> <p><strong>Please follow these steps to complete your registration:</strong></p> <ol> <li>Click on the system URL provided above.</li> <li>Enter your email and password.</li> <li>Follow the instructions to complete your profile setup.</li> </ol> <p><strong>Important:</strong></p> <ul> <li>For security reasons, please change your password after your first login.</li> <li>If you encounter any issues during the registration process, please do not hesitate to contact our support team at {support_email} or call {contact}.</li> </ul> <p>Thank you for choosing {system_name}. We are committed to providing you with the best educational tools and resources.</p> <p>Best regards,</p> <p>{super_admin_name}<br>{system_name}<br>{support_email}<br>{url}</p> <br> <p><strong>This email was auto-generated, so don\'t reply.</strong></p>', 'text'), (21, 'system_version', '1.8.0', 'string'), (23, 'email_template_two_factor_authentication_code', '<p>Dear {school_admin_name},</p> <p>Welcome to {system_name}!</p> <p>We are excited to have you as part of our educational community. To enhance the security of your account, we have enabled Two-Factor Authentication (2FA) for your login.</p> <p><strong>Your Verification Code:</strong></p> <p><strong>{verification_code}</strong></p> <p>This verification code is required to complete your login process. Please enter the code within the next {expiration_time} minutes. If the code expires, you can request a new one by following the same process.</p> <hr> <p><strong>Important:</strong></p> <ul> <li>If you did not request this verification code, please contact our support team immediately at {support_email} or call {support_contact} to secure your account.</li> <li>For additional security, ensure that no one else has access to your email or device when retrieving your verification code.</li> </ul> <p>If you have any issues with the 2FA process or need assistance, our support team is ready to help at {support_email} or {support_contact}.</p> <p>Thank you for taking extra steps to secure your account. We appreciate your commitment to keeping your information safe.</p> <p>Best regards,</p> <p>{super_admin_name}<br>{system_name}<br>{support_email}<br>{url}</p> <br> <p><strong>This email was auto-generated, so please do not reply.</strong></p>', 'text'), (24, 'school_inquiry', '0', 'string'), (25, 'file_upload_size_limit', '2', 'string'), (26, 'wizard_checkMark', '0', 'integer'), (27, 'system_settings_wizard_checkMark', '0', 'integer'), (28, 'notification_settings_wizard_checkMark', '0', 'integer'), (29, 'email_settings_wizard_checkMark', '0', 'integer'), (30, 'verify_email_wizard_checkMark', '0', 'integer'), (31, 'email_template_settings_wizard_checkMark', '0', 'integer'), (32, 'payment_settings_wizard_checkMark', '0', 'integer'), (33, 'third_party_api_settings_wizard_checkMark', '0', 'integer'), (34, 'database_root_user', '0', 'integer'), (35, 'laravel_queue_setup', '0', 'integer'), (36, 'wildcard_domain', '0', 'integer'), (37, 'web_socket_setup', '0', 'integer'), (38, 'notification_settings', '0', 'integer'), (39, 'time_zone', 'Asia/Kolkata', 'string'), (40, 'date_format', 'd-m-Y', 'date'), (41, 'time_format', 'h:i A', 'time'), (42, 'theme_color', '#22577A', 'string'), (43, 'session_year', '1', 'string'), (44, 'email_verified', '0', 'boolean'), (45, 'subscription_alert', '7', 'integer'), (46, 'currency_code', 'USD', 'string'), (47, 'currency_symbol', '$', 'string'), (48, 'additional_billing_days', '5', 'integer'), (49, 'system_name', 'eSchool Saas - School Management System', 'string'), (50, 'address', '#262-263, Time Square Empire, SH 42 Mirjapar highway, Bhuj - Kutch 370001 Gujarat India.', 'string'), (51, 'billing_cycle_in_days', '30', 'integer'), (52, 'current_plan_expiry_warning_days', '7', 'integer'), (53, 'front_site_theme_color', '#e9f9f3', 'text'), (54, 'primary_color', '#3ccb9b', 'text'), (55, 'secondary_color', '#245a7f', 'text'), (56, 'short_description', 'eSchool-Saas - Manage Your School', 'text'), (57, 'facebook', 'https://www.facebook.com/wrteam.in/', 'text'), (58, 'instagram', 'https://www.instagram.com/wrteam.in/', 'text'), (59, 'linkedin', 'https://in.linkedin.com/company/wrteam', 'text'), (60, 'footer_text', '<p>© <strong><a href=\'https://wrteam.in/\' target=\'_blank\' rel=\'noopener noreferrer\'>WRTeam</a></strong>. All Rights Reserved</p>', 'text'), (61, 'tagline', 'We Provide the best Education', 'text'), (62, 'super_admin_name', 'Super Admin', 'text'), (69, 'web_maintenance', '0', 'string'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `first_name` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL, `last_name` varchar(128) COLLATE utf8mb4_unicode_ci NOT NULL, `mobile` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `gender` varchar(16) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `image` varchar(512) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `dob` date DEFAULT NULL, `current_address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `permanent_address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `occupation` varchar(128) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `status` tinyint(4) NOT NULL DEFAULT '1', `reset_request` tinyint(4) NOT NULL DEFAULT '0', `fcm_id` varchar(1024) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `school_id` bigint(20) UNSIGNED DEFAULT NULL, `language` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'en', `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `two_factor_enabled` tinyint(4) NOT NULL DEFAULT '1', `two_factor_secret` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `two_factor_expires_at` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `first_name`, `last_name`, `mobile`, `email`, `password`, `gender`, `image`, `dob`, `current_address`, `permanent_address`, `occupation`, `status`, `reset_request`, `fcm_id`, `school_id`, `language`, `remember_token`, `email_verified_at`, `two_factor_enabled`, `two_factor_secret`, `two_factor_expires_at`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'super', 'admin', '', 'superadmin@gmail.com', '$2y$10$AtZYStnPt80bKPfRdAtka.k4e1QuNIjSKYSZ19kmPIjfs/m5ymMgi', 'male', 'logo.svg', NULL, NULL, NULL, NULL, 1, 0, NULL, NULL, 'en', NULL, '2025-12-13 11:39:36', 0, NULL, NULL, '2025-12-13 11:39:36', '2025-12-13 11:39:36', NULL); -- -- Indexes for dumped tables -- -- -- Indexes for table `addons` -- ALTER TABLE `addons` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `addons_feature_id_unique` (`feature_id`); -- -- Indexes for table `addon_subscriptions` -- ALTER TABLE `addon_subscriptions` ADD PRIMARY KEY (`id`), ADD KEY `addon_subscriptions_school_id_foreign` (`school_id`), ADD KEY `addon_subscriptions_feature_id_foreign` (`feature_id`), ADD KEY `addon_subscriptions_subscription_id_foreign` (`subscription_id`), ADD KEY `addon_subscriptions_payment_transaction_id_foreign` (`payment_transaction_id`); -- -- Indexes for table `contact_inquiry` -- ALTER TABLE `contact_inquiry` ADD PRIMARY KEY (`id`); -- -- Indexes for table `extra_school_datas` -- ALTER TABLE `extra_school_datas` ADD PRIMARY KEY (`id`), ADD KEY `extra_school_datas_school_inquiry_id_foreign` (`school_inquiry_id`), ADD KEY `extra_school_datas_school_id_foreign` (`school_id`), ADD KEY `extra_school_datas_form_field_id_foreign` (`form_field_id`); -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); -- -- Indexes for table `faqs` -- ALTER TABLE `faqs` ADD PRIMARY KEY (`id`), ADD KEY `faqs_school_id_foreign` (`school_id`); -- -- Indexes for table `features` -- ALTER TABLE `features` ADD PRIMARY KEY (`id`); -- -- Indexes for table `feature_sections` -- ALTER TABLE `feature_sections` ADD PRIMARY KEY (`id`); -- -- Indexes for table `feature_section_lists` -- ALTER TABLE `feature_section_lists` ADD PRIMARY KEY (`id`), ADD KEY `feature_section_lists_feature_section_id_foreign` (`feature_section_id`); -- -- Indexes for table `files` -- ALTER TABLE `files` ADD PRIMARY KEY (`id`), ADD KEY `files_modal_type_modal_id_index` (`modal_type`,`modal_id`), ADD KEY `files_school_id_foreign` (`school_id`); -- -- Indexes for table `form_fields` -- ALTER TABLE `form_fields` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `name` (`name`,`school_id`), ADD KEY `form_fields_school_id_foreign` (`school_id`); -- -- Indexes for table `guidances` -- ALTER TABLE `guidances` ADD PRIMARY KEY (`id`); -- -- Indexes for table `jobs` -- ALTER TABLE `jobs` ADD PRIMARY KEY (`id`), ADD KEY `jobs_queue_index` (`queue`); -- -- Indexes for table `languages` -- ALTER TABLE `languages` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `languages_code_unique` (`code`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `model_has_permissions` -- ALTER TABLE `model_has_permissions` ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`), ADD KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`); -- -- Indexes for table `model_has_roles` -- ALTER TABLE `model_has_roles` ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`), ADD KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`); -- -- Indexes for table `packages` -- ALTER TABLE `packages` ADD PRIMARY KEY (`id`); -- -- Indexes for table `package_features` -- ALTER TABLE `package_features` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `unique` (`package_id`,`feature_id`), ADD KEY `package_features_package_id_index` (`package_id`), ADD KEY `package_features_feature_id_index` (`feature_id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `payment_configurations` -- ALTER TABLE `payment_configurations` ADD PRIMARY KEY (`id`), ADD KEY `payment_configurations_school_id_foreign` (`school_id`); -- -- Indexes for table `payment_transactions` -- ALTER TABLE `payment_transactions` ADD PRIMARY KEY (`id`), ADD KEY `payment_transactions_school_id_foreign` (`school_id`), ADD KEY `payment_transactions_user_id_foreign` (`user_id`); -- -- Indexes for table `permissions` -- ALTER TABLE `permissions` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `permissions_name_guard_name_unique` (`name`,`guard_name`); -- -- Indexes for table `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`), ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`); -- -- Indexes for table `roles` -- ALTER TABLE `roles` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `roles_name_guard_name_school_id_unique` (`name`,`guard_name`,`school_id`), ADD KEY `roles_school_id_foreign` (`school_id`); -- -- Indexes for table `role_has_permissions` -- ALTER TABLE `role_has_permissions` ADD PRIMARY KEY (`permission_id`,`role_id`), ADD KEY `role_has_permissions_role_id_foreign` (`role_id`); -- -- Indexes for table `schools` -- ALTER TABLE `schools` ADD PRIMARY KEY (`id`), ADD KEY `schools_admin_id_foreign` (`admin_id`); -- -- Indexes for table `school_inquiries` -- ALTER TABLE `school_inquiries` ADD PRIMARY KEY (`id`); -- -- Indexes for table `school_settings` -- ALTER TABLE `school_settings` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `school_settings_name_school_id_unique` (`name`,`school_id`), ADD KEY `school_settings_school_id_foreign` (`school_id`); -- -- Indexes for table `staffs` -- ALTER TABLE `staffs` ADD PRIMARY KEY (`id`), ADD KEY `staffs_user_id_foreign` (`user_id`); -- -- Indexes for table `staff_support_schools` -- ALTER TABLE `staff_support_schools` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `user_school` (`user_id`,`school_id`), ADD KEY `staff_support_schools_school_id_foreign` (`school_id`); -- -- Indexes for table `subscriptions` -- ALTER TABLE `subscriptions` ADD PRIMARY KEY (`id`), ADD KEY `subscriptions_school_id_foreign` (`school_id`), ADD KEY `subscriptions_package_id_foreign` (`package_id`); -- -- Indexes for table `subscription_bills` -- ALTER TABLE `subscription_bills` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `subscription_bill` (`subscription_id`,`school_id`), ADD KEY `subscription_bills_school_id_foreign` (`school_id`), ADD KEY `subscription_bills_payment_transaction_id_foreign` (`payment_transaction_id`); -- -- Indexes for table `subscription_features` -- ALTER TABLE `subscription_features` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `unique` (`subscription_id`,`feature_id`), ADD KEY `subscription_features_feature_id_foreign` (`feature_id`); -- -- Indexes for table `system_settings` -- ALTER TABLE `system_settings` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `system_settings_name_unique` (`name`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`), ADD KEY `users_school_id_foreign` (`school_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `addons` -- ALTER TABLE `addons` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `addon_subscriptions` -- ALTER TABLE `addon_subscriptions` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `contact_inquiry` -- ALTER TABLE `contact_inquiry` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `extra_school_datas` -- ALTER TABLE `extra_school_datas` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `faqs` -- ALTER TABLE `faqs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `features` -- ALTER TABLE `features` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22; -- -- AUTO_INCREMENT for table `feature_sections` -- ALTER TABLE `feature_sections` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `feature_section_lists` -- ALTER TABLE `feature_section_lists` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `files` -- ALTER TABLE `files` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `form_fields` -- ALTER TABLE `form_fields` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `guidances` -- ALTER TABLE `guidances` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `jobs` -- ALTER TABLE `jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `languages` -- ALTER TABLE `languages` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- AUTO_INCREMENT for table `packages` -- ALTER TABLE `packages` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `package_features` -- ALTER TABLE `package_features` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `payment_configurations` -- ALTER TABLE `payment_configurations` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `payment_transactions` -- ALTER TABLE `payment_transactions` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `permissions` -- ALTER TABLE `permissions` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=58; -- -- AUTO_INCREMENT for table `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `roles` -- ALTER TABLE `roles` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `schools` -- ALTER TABLE `schools` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `school_inquiries` -- ALTER TABLE `school_inquiries` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `school_settings` -- ALTER TABLE `school_settings` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `staffs` -- ALTER TABLE `staffs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `staff_support_schools` -- ALTER TABLE `staff_support_schools` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `subscriptions` -- ALTER TABLE `subscriptions` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `subscription_bills` -- ALTER TABLE `subscription_bills` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `subscription_features` -- ALTER TABLE `subscription_features` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `system_settings` -- ALTER TABLE `system_settings` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=70; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- Constraints for dumped tables -- -- -- Constraints for table `addons` -- ALTER TABLE `addons` ADD CONSTRAINT `addons_feature_id_foreign` FOREIGN KEY (`feature_id`) REFERENCES `features` (`id`) ON DELETE CASCADE; -- -- Constraints for table `addon_subscriptions` -- ALTER TABLE `addon_subscriptions` ADD CONSTRAINT `addon_subscriptions_feature_id_foreign` FOREIGN KEY (`feature_id`) REFERENCES `features` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `addon_subscriptions_payment_transaction_id_foreign` FOREIGN KEY (`payment_transaction_id`) REFERENCES `payment_transactions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `addon_subscriptions_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `addon_subscriptions_subscription_id_foreign` FOREIGN KEY (`subscription_id`) REFERENCES `subscriptions` (`id`) ON DELETE CASCADE; -- -- Constraints for table `extra_school_datas` -- ALTER TABLE `extra_school_datas` ADD CONSTRAINT `extra_school_datas_form_field_id_foreign` FOREIGN KEY (`form_field_id`) REFERENCES `form_fields` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `extra_school_datas_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `extra_school_datas_school_inquiry_id_foreign` FOREIGN KEY (`school_inquiry_id`) REFERENCES `school_inquiries` (`id`) ON DELETE CASCADE; -- -- Constraints for table `faqs` -- ALTER TABLE `faqs` ADD CONSTRAINT `faqs_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE; -- -- Constraints for table `feature_section_lists` -- ALTER TABLE `feature_section_lists` ADD CONSTRAINT `feature_section_lists_feature_section_id_foreign` FOREIGN KEY (`feature_section_id`) REFERENCES `feature_sections` (`id`) ON DELETE CASCADE; -- -- Constraints for table `files` -- ALTER TABLE `files` ADD CONSTRAINT `files_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE; -- -- Constraints for table `form_fields` -- ALTER TABLE `form_fields` ADD CONSTRAINT `form_fields_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE; -- -- Constraints for table `model_has_permissions` -- ALTER TABLE `model_has_permissions` ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE; -- -- Constraints for table `model_has_roles` -- ALTER TABLE `model_has_roles` ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE; -- -- Constraints for table `package_features` -- ALTER TABLE `package_features` ADD CONSTRAINT `package_features_feature_id_foreign` FOREIGN KEY (`feature_id`) REFERENCES `features` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `package_features_package_id_foreign` FOREIGN KEY (`package_id`) REFERENCES `packages` (`id`) ON DELETE CASCADE; -- -- Constraints for table `payment_configurations` -- ALTER TABLE `payment_configurations` ADD CONSTRAINT `payment_configurations_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE; -- -- Constraints for table `payment_transactions` -- ALTER TABLE `payment_transactions` ADD CONSTRAINT `payment_transactions_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `payment_transactions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `roles` -- ALTER TABLE `roles` ADD CONSTRAINT `roles_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE; -- -- Constraints for table `role_has_permissions` -- ALTER TABLE `role_has_permissions` ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE; -- -- Constraints for table `schools` -- ALTER TABLE `schools` ADD CONSTRAINT `schools_admin_id_foreign` FOREIGN KEY (`admin_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `school_settings` -- ALTER TABLE `school_settings` ADD CONSTRAINT `school_settings_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE; -- -- Constraints for table `staffs` -- ALTER TABLE `staffs` ADD CONSTRAINT `staffs_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `staff_support_schools` -- ALTER TABLE `staff_support_schools` ADD CONSTRAINT `staff_support_schools_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `staff_support_schools_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Constraints for table `subscriptions` -- ALTER TABLE `subscriptions` ADD CONSTRAINT `subscriptions_package_id_foreign` FOREIGN KEY (`package_id`) REFERENCES `packages` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subscriptions_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE; -- -- Constraints for table `subscription_bills` -- ALTER TABLE `subscription_bills` ADD CONSTRAINT `subscription_bills_payment_transaction_id_foreign` FOREIGN KEY (`payment_transaction_id`) REFERENCES `payment_transactions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subscription_bills_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subscription_bills_subscription_id_foreign` FOREIGN KEY (`subscription_id`) REFERENCES `subscriptions` (`id`) ON DELETE CASCADE; -- -- Constraints for table `subscription_features` -- ALTER TABLE `subscription_features` ADD CONSTRAINT `subscription_features_feature_id_foreign` FOREIGN KEY (`feature_id`) REFERENCES `features` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `subscription_features_subscription_id_foreign` FOREIGN KEY (`subscription_id`) REFERENCES `subscriptions` (`id`) ON DELETE CASCADE; -- -- Constraints for table `users` -- ALTER TABLE `users` ADD CONSTRAINT `users_school_id_foreign` FOREIGN KEY (`school_id`) REFERENCES `schools` (`id`) ON DELETE CASCADE; 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 */;