Advertisement
Virajsinh

registration.sql

Apr 11th, 2023 (edited)
1,517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 3.51 KB | Source Code | 0 0
  1. -- FILE_NAME : registration.sql
  2.  
  3. -- phpMyAdmin SQL Dump
  4. -- version 5.2.0
  5. -- https://www.phpmyadmin.net/
  6. --
  7. -- Host: localhost
  8. -- Generation Time: Apr 11, 2023 at 07:12 AM
  9. -- Server version: 10.4.21-MariaDB
  10. -- PHP Version: 7.4.29
  11.  
  12. START TRANSACTION;
  13.  
  14. -- --------------------------------------------------------
  15.  
  16. --
  17. -- Table structure for table `tbl_registration`
  18. --
  19.  
  20. CREATE TABLE `tbl_registration` (
  21.   `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
  22.   `first_name` varchar(50) NOT NULL,
  23.   `middle_name` varchar(50) NOT NULL,
  24.   `last_name` varchar(50) NOT NULL,
  25.   `gender` enum('male','female','other') NOT NULL,
  26.   `email` varchar(255) NOT NULL COMMENT "Email Address",
  27.   `email_verified` enum('true','false') DEFAULT "false" NOT NULL,
  28.   `email_verified_at` datetime DEFAULT NULL COMMENT "Email Address Verified DateTime",
  29.   `mobile_primary` varchar(11) NOT NULL COMMENT "Primary Mobile Number",
  30.   `mobile_secondary`varchar(11) DEFAULT NULL COMMENT "Secondary Mobile Number",
  31.   `birthdate` date NOT NULL,
  32.   `blood_group` TINYINT(1) DEFAULT NULL,
  33.   `education` int(11) NOT NULL COMMENT "Education ID",
  34.   `occupation_type` TINYINT(1) NOT NULL,
  35.   `occupation` varchar(100) DEFAULT NULL,
  36.   `state` int(11) NOT NULL COMMENT "State ID",
  37.   `dist` int(11) NOT NULL COMMENT "District ID",
  38.   `sub_dist` int(11) NOT NULL COMMENT "Sub District ID",
  39.   `city` varchar(100) NOT NULL COMMENT "City/Village Name",
  40.   `post_code` int(6) NOT NULL COMMENT "City/Village Post Code",
  41.   `status` enum('active','inactive','blocked','suspended') DEFAULT "inactive" NOT NULL,
  42.   `status_at` datetime DEFAULT NULL COMMENT "Status Update DateTime",
  43.   `verified` enum('true','false') DEFAULT "false" NOT NULL,
  44.   `verified_at` datetime DEFAULT NULL COMMENT "Verified DateTime",
  45.   `verified_by` int(11) DEFAULT NULL COMMENT "Verified Person ID",
  46.   `created_by` int(11) DEFAULT NULL COMMENT "Create Person ID",
  47.   `updated_by` int(11) DEFAULT NULL COMMENT "Update Person ID",
  48.   `created_at` datetime NOT NULL DEFAULT current_timestamp(),
  49.   `updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp() COMMENT "Data Update DateTime Update"
  50. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  51.  
  52. --
  53. -- Table structure for table `tbl_blood_group`
  54. --
  55.  
  56. CREATE TABLE `tbl_blood_group` (
  57.   `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
  58.   `blood_group` varchar(3) NOT NULL,
  59.   `status` enum('active','inactive') DEFAULT "inactive"
  60. )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  61.  
  62. --
  63. -- Dumping data for table `tbl_blood_group`
  64. --
  65.  
  66. INSERT INTO `tbl_blood_group` (`id`, `blood_group`, `status`) VALUES
  67. (NULL, 'A+', 'active'),
  68. (NULL, 'A-', 'active'),
  69. (NULL, 'B+', 'active'),
  70. (NULL, 'B-', 'active'),
  71. (NULL, 'AB+', 'active'),
  72. (NULL, 'AB-', 'active'),
  73. (NULL, 'O+', 'active'),
  74. (NULL, 'O-', 'active');
  75.  
  76. --
  77. -- Table structure for table `tbl_education`
  78. --
  79.  
  80. CREATE TABLE `tbl_education` (
  81.   `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
  82.   `education_type` varchar(100) NOT NULL,
  83.   `status` enum('active','inactive') DEFAULT "inactive"
  84. )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  85.  
  86. --
  87. -- Dumping data for table `tbl_education`
  88. --
  89.  
  90. INSERT INTO `tbl_education` (`id`, `education_type`, `status`) VALUES
  91. (NULL, '7th Below', 'active'),
  92. (NULL, '8th Pass', 'active'),
  93. (NULL, '9th Pass', 'active'),
  94. (NULL, '10th Pass', 'active'),
  95. (NULL, '11th Pass', 'active'),
  96. (NULL, '12th Pass', 'active'),
  97. (NULL, 'Graduate (Bachelor)', 'active'),
  98. (NULL, 'Post Graduate (Master)', 'active'),
  99. (NULL, 'PhD', 'active');
  100.  
  101. -- --------------------------------------------------------
  102.  
  103. COMMIT;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement