Virajsinh

registration.sql

Apr 11th, 2023 (edited)
1,787
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 25.77 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 `registration`
  18. --
  19.  
  20. CREATE TABLE `registration` (
  21.     `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
  22.     `first_name` varchar(50) NOT NULL COMMENT "Person Name",
  23.     `middle_name` varchar(50) NOT NULL COMMENT "Father/Husband Name",
  24.     `last_name` varchar(50) NOT NULL COMMENT "Surname",
  25.     `is_registered` TINYINT(1) NOT NULL DEFAULT '0' COMMENT 'if person registered form filled then 1 otherwise 0',
  26.     `gender` TINYINT(1) NOT NULL DEFAULT '0' COMMENT '0 - not set\r\n1 - male\r\n2 - female\r\n3 - other',
  27.     `marital_status` TINYINT(1) NOT NULL DEFAULT '0' COMMENT '0 - not set\r\1 - single\r\n2 - married\r\n3 - divorced\r\n4 - widowed',
  28.     `email` varchar(255) NULL UNIQUE COMMENT "Email Address",
  29.     `email_verified` TINYINT(1) DEFAULT "0" NOT NULL COMMENT "0 - not verified\r\n1 - verified",
  30.     `email_verified_at` DATETIME DEFAULT NULL COMMENT "Email Address Verified DateTime",
  31.     `primary_mobile` varchar(10) UNIQUE DEFAULT NULL COMMENT "Primary Mobile Number",
  32.     `primary_mobile_verified_at` DATETIME DEFAULT NULL COMMENT "Primary Mobile Verified DateTime",
  33.     `secondary_mobile`varchar(10) DEFAULT NULL COMMENT "Secondary Mobile Number",
  34.     `birth_date` date DEFAULT NULL,
  35.     `death_date` date DEFAULT NULL,
  36.     `blood_group_id` TINYINT(1) NOT NULL DEFAULT "0" COMMENT "Blood Group Type ID",
  37.     `education_id` int(11) NOT NULL DEFAULT "0" COMMENT "Education ID",
  38.     `course_id` INT(11) NOT NULL DEFAULT '0' COMMENT 'Course ID',
  39.     `occupation_type_id` int(11) NOT NULL DEFAULT "0" COMMENT "Occupation Type ID",
  40.     `occupation_id` varchar(100) DEFAULT NULL COMMENT "Occupation ID",
  41.     `state_id` int(11) NOT NULL DEFAULT "0" COMMENT "State ID",
  42.     `dist_id` int(11) NOT NULL DEFAULT "0" COMMENT "District ID",
  43.     `sub_dist_id` int(11) NOT NULL DEFAULT "0" COMMENT "Sub District ID",
  44.     `city_id` int NOT NULL DEFAULT "0" COMMENT "City/Village ID",
  45.     `pin_code` varchar(6) NULL DEFAULT NULL COMMENT "City/Village Pin Code",
  46.     `status` TINYINT(1) DEFAULT "0" NOT NULL COMMENT '0 - inactive - User registered but not activated\r\n1 - active - User is active and can use the system\r\n2 - blocked - User is manually blocked by admin\r\n3 - suspended - Temporarily disabled, maybe for violations\r\n4 - pending - Waiting for admin approval or email verification\r\n5 - deleted - Soft-deleted or marked for removal\r\n6 - banned - Permanently banned due to serious violation',
  47.     `status_at` DATETIME DEFAULT NULL COMMENT "Status Update DateTime",
  48.     `verified` TINYINT(1) DEFAULT "0" NOT NULL COMMENT "0 - not verified\r\n1 - verified",
  49.     `verified_at` DATETIME DEFAULT NULL COMMENT "Verified DateTime",
  50.     `verified_by` int(11) NOT NULL DEFAULT "0" COMMENT "Verified Person ID",
  51.     `created_by` int(11) NOT NULL DEFAULT "0" COMMENT "Create Person ID",
  52.     `updated_by` int(11) NOT NULL DEFAULT "0" COMMENT "Update Person ID",
  53.     `created_at` DATETIME DEFAULT NULL,
  54.     `updated_at` DATETIME DEFAULT NULL
  55. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  56.  
  57. --
  58. -- Table structure for table `languages`
  59. --
  60.  
  61. CREATE TABLE `languages` (
  62.     `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
  63.     `title` varchar(30) NOT NULL,
  64.     `language` varchar(10) NOT NULL,
  65.     `code` varchar(2) NOT NULL COMMENT 'ISO 639-1 codes',
  66.     `status` TINYINT(1) DEFAULT 0 NOT NULL,
  67.     `is_default` tinyint(1) NOT NULL DEFAULT '0',
  68.     `created_by` int(11) NOT NULL DEFAULT 0,
  69.     `updated_by` int(11) NOT NULL DEFAULT 0,
  70.     `created_at` DATETIME DEFAULT NULL,
  71.     `updated_at` DATETIME DEFAULT NULL
  72. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  73.  
  74. --
  75. -- Dumping data for table `languages`
  76. --
  77.  
  78. INSERT INTO `languages` (`id`, `title`, `language`, `code`, `status`, `is_default`, `created_by`, `updated_by`, `created_at`, `updated_at`) VALUES
  79. (1, 'English','english', 'en', 1, 0, 0, 0, NULL, NULL),
  80. (2, 'हिंदी','hindi', 'hi', 1, 0, 0, 0, NULL, NULL),
  81. (3, 'ગુજરાતી','gujarati', 'gu', 1, 0, 0, 0, NULL, NULL);
  82.  
  83. --
  84. -- Table structure for table `registration_translation`
  85. --
  86.  
  87. CREATE TABLE `registration_translation` (
  88.     `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
  89.     `registration_id` int(11) NOT NULL,
  90.     `language_code_id` int(11) NOT NULL,
  91.     `first_name` varchar(100) NOT NULL,
  92.     `middle_name` varchar(100) NOT NULL,
  93.     `last_name` varchar(100) NOT NULL,
  94.     `created_by` INT DEFAULT '0' NOT NULL COMMENT "Create Person ID",
  95.     `updated_by` INT DEFAULT '0' NOT NULL COMMENT "Update Person ID",
  96.     `created_at` DATETIME DEFAULT NULL,
  97.     `updated_at` DATETIME DEFAULT NULL,
  98.     UNIQUE KEY `registration_language_unique` (`registration_id`, `language_code_id`),
  99.    
  100.     CONSTRAINT `fk_registration_translation_registration`
  101.         FOREIGN KEY (`registration_id`) REFERENCES `registration` (`id`) ON DELETE CASCADE,
  102.  
  103.     CONSTRAINT `fk_registration_translation_language`
  104.         FOREIGN KEY (`language_code_id`) REFERENCES `languages` (`id`) ON DELETE CASCADE
  105. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  106.  
  107. --
  108. -- Table structure for table `family_relationships`
  109. --
  110.  
  111. CREATE TABLE relation_types (
  112.     `id` INT AUTO_INCREMENT PRIMARY KEY,
  113.     `name` VARCHAR(50) NOT NULL UNIQUE,
  114.     `reverse_relation` VARCHAR(50) NOT NULL
  115. );
  116.  
  117. -- Insert common relation types
  118. INSERT INTO relation_types (id, name, reverse_relation) VALUES
  119. (1, 'father', 'child'),
  120. (2, 'mother', 'child'),
  121. (3, 'child', 'parent'),
  122. (4, 'wife', 'husband'),
  123. (5, 'husband', 'wife'),
  124. (6, 'brother', 'sibling'),
  125. (7, 'sister', 'sibling');
  126.  
  127. -- 3. Create family_relationships
  128. CREATE TABLE family_relationships (
  129.     id INT AUTO_INCREMENT PRIMARY KEY,
  130.     person_id INT NOT NULL,
  131.     related_person_id INT NOT NULL,
  132.     relation_type_id INT NOT NULL,
  133.     created_at DATETIME DEFAULT NULL,
  134.     FOREIGN KEY (person_id) REFERENCES registration(id),
  135.     FOREIGN KEY (related_person_id) REFERENCES registration(id),
  136.     FOREIGN KEY (relation_type_id) REFERENCES relation_types(id),
  137.     UNIQUE (person_id, related_person_id, relation_type_id)
  138. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  139.  
  140. --
  141. -- Table structure for table `maiden_name`
  142. --
  143.  
  144. CREATE TABLE `maiden_name` (
  145.     `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
  146.     `registration_id` INT NOT NULL,
  147.     `first_name` VARCHAR(100),
  148.     `middle_name` VARCHAR(100),
  149.     `last_name` VARCHAR(100),
  150.     `created_by` INT DEFAULT '0' NOT NULL COMMENT "Create Person ID",
  151.     `updated_by` INT DEFAULT '0' NOT NULL COMMENT "Update Person ID",
  152.     `created_at` DATETIME DEFAULT NULL,
  153.     `updated_at` DATETIME DEFAULT NULL,
  154.     FOREIGN KEY (`registration_id`) REFERENCES `registration` (`id`) ON DELETE CASCADE
  155. )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  156.  
  157. --
  158. -- Table structure for table `maiden_name_translation`
  159. --
  160.  
  161. CREATE TABLE `maiden_name_translation` (
  162.     `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
  163.     `registration_id` INT NOT NULL,
  164.     `language_code_id` INT NOT NULL,
  165.     `first_name` VARCHAR(100),
  166.     `middle_name` VARCHAR(100),
  167.     `last_name` VARCHAR(100),
  168.     `created_by` INT DEFAULT '0' NOT NULL COMMENT "Create Person ID",
  169.     `updated_by` INT DEFAULT '0' NOT NULL COMMENT "Update Person ID",
  170.     `created_at` DATETIME DEFAULT NULL,
  171.     `updated_at` DATETIME DEFAULT NULL,
  172.     UNIQUE KEY `registration_language_unique` (`registration_id`, `language_code_id`),
  173.     FOREIGN KEY (`registration_id`) REFERENCES `registration` (`id`) ON DELETE CASCADE,
  174.     FOREIGN KEY (`language_code_id`) REFERENCES `languages` (`id`) ON DELETE CASCADE
  175. )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  176.  
  177. --
  178. -- Table structure for table `blood_group`
  179. --
  180.  
  181. CREATE TABLE `blood_group` (
  182.     `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
  183.     `blood_group` varchar(12) NOT NULL,
  184.     `status` TINYINT(1) DEFAULT 0 NOT NULL,
  185.     `created_by` INT DEFAULT '0' NOT NULL COMMENT "Create Person ID",
  186.     `updated_by` INT DEFAULT '0' NOT NULL COMMENT "Update Person ID",
  187.     `created_at` DATETIME NULL DEFAULT NULL,
  188.     `updated_at` DATETIME NULL DEFAULT NULL
  189. )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  190.  
  191. --
  192. -- Dumping data for table `blood_group`
  193. --
  194.  
  195. INSERT INTO `blood_group` (`blood_group`, `status`, `created_by`, `updated_by`, `created_at`, `updated_at`) VALUES
  196. ('A Positive', 1, 0, 0, NOW(), null),
  197. ('A Negative', 1, 0, 0, NOW(), null),
  198. ('B Positive', 1, 0, 0, NOW(), null),
  199. ('B Negative', 1, 0, 0, NOW(), null),
  200. ('AB Positive', 1, 0, 0, NOW(), null),
  201. ('AB Negative', 1, 0, 0, NOW(), null),
  202. ('O Positive', 1, 0, 0, NOW(), null),
  203. ('O Negative', 1, 0, 0, NOW(), null);
  204.  
  205. --
  206. -- Table structure for table `education`
  207. --
  208.  
  209. CREATE TABLE `education` (
  210.     `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
  211.     `education_type` varchar(100) NOT NULL,
  212.     `status` TINYINT(1) DEFAULT 0 NOT NULL,
  213.     `created_by` INT DEFAULT '0' NOT NULL COMMENT "Create Person ID",
  214.     `updated_by` INT DEFAULT '0' NOT NULL COMMENT "Update Person ID",
  215.     `created_at` DATETIME NULL DEFAULT NULL,
  216.     `updated_at` DATETIME NULL DEFAULT NULL
  217. )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  218.  
  219. --
  220. -- Dumping data for table `education`
  221. --
  222.  
  223. INSERT INTO `education` (`education_type`, `status`) VALUES
  224. ('Below 7th Standard', 1),
  225. ('7th Standard', 1),
  226. ('8th Standard', 1),
  227. ('9th Standard', 1),
  228. ('10th Standard (SSC)', 1),
  229. ('11th Standard', 1),
  230. ('12th Standard (HSC)', 1),
  231. ('Bachelor\'s Degree - Graduate', 1),
  232. ('Master\'s Degree - Post Graduate', 1),
  233. ('PhD or Equivalent - Doctorate', 1);
  234.  
  235. CREATE TABLE `surname` (
  236.     `id` BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
  237.     `surname` VARCHAR(100) NOT NULL UNIQUE,
  238.     `status` TINYINT(1) DEFAULT 0 NOT NULL,
  239.     `created_by` INT NOT NULL DEFAULT 0 COMMENT 'Create Person ID',
  240.     `updated_by` INT NOT NULL DEFAULT 0 COMMENT 'Update Person ID',
  241.     `created_at` DATETIME NULL DEFAULT NULL,
  242.     `updated_at` DATETIME NULL DEFAULT NULL
  243. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  244.  
  245. INSERT INTO `surname` (`surname`, `status`) VALUES ('Nakum', 1);
  246. INSERT INTO `surname` (`surname`, `status`) VALUES ('Rathod', 1);
  247. INSERT INTO `surname` (`surname`, `status`) VALUES ('Parmar', 1);
  248. INSERT INTO `surname` (`surname`, `status`) VALUES ('Herma', 1);
  249. INSERT INTO `surname` (`surname`, `status`) VALUES ('Makvana', 1);
  250. INSERT INTO `surname` (`surname`, `status`) VALUES ('Dodiya', 1);
  251. INSERT INTO `surname` (`surname`, `status`) VALUES ('Sakariya', 1);
  252. INSERT INTO `surname` (`surname`, `status`) VALUES ('Vadher', 1);
  253. INSERT INTO `surname` (`surname`, `status`) VALUES ('Sindhav', 1);
  254. INSERT INTO `surname` (`surname`, `status`) VALUES ('Chauhan', 1);
  255. INSERT INTO `surname` (`surname`, `status`) VALUES ('Solanki', 1);
  256. INSERT INTO `surname` (`surname`, `status`) VALUES ('Zala', 1);
  257. INSERT INTO `surname` (`surname`, `status`) VALUES ('Padhariya', 1);
  258. INSERT INTO `surname` (`surname`, `status`) VALUES ('Padhiyar', 1);
  259. INSERT INTO `surname` (`surname`, `status`) VALUES ('Barad', 1);
  260. INSERT INTO `surname` (`surname`, `status`) VALUES ('Vala', 1);
  261. INSERT INTO `surname` (`surname`, `status`) VALUES ('Kher', 1);
  262. INSERT INTO `surname` (`surname`, `status`) VALUES ('Asvar', 1);
  263. INSERT INTO `surname` (`surname`, `status`) VALUES ('Zankat', 1);
  264. INSERT INTO `surname` (`surname`, `status`) VALUES ('Mori', 1);
  265. INSERT INTO `surname` (`surname`, `status`) VALUES ('Jadav', 1);
  266. INSERT INTO `surname` (`surname`, `status`) VALUES ('Dabhi', 1);
  267. INSERT INTO `surname` (`surname`, `status`) VALUES ('Vanar', 1);
  268. INSERT INTO `surname` (`surname`, `status`) VALUES ('Gohil', 1);
  269. INSERT INTO `surname` (`surname`, `status`) VALUES ('Tank', 1);
  270. INSERT INTO `surname` (`surname`, `status`) VALUES ('Bhadaliya', 1);
  271. INSERT INTO `surname` (`surname`, `status`) VALUES ('Yadav', 1);
  272.  
  273. CREATE TABLE `surname_translation` (
  274.     `id` BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
  275.     `translation` VARCHAR(100) NOT NULL,
  276.     `surname_id` BIGINT UNSIGNED NOT NULL,
  277.     `language_code_id` INT NOT NULL,
  278.     `created_by` INT NOT NULL DEFAULT 0 COMMENT 'Create Person ID',
  279.     `updated_by` INT NOT NULL DEFAULT 0 COMMENT 'Update Person ID',
  280.     `created_at` DATETIME NULL DEFAULT NULL,
  281.     `updated_at` DATETIME NULL DEFAULT NULL,
  282.     FOREIGN KEY (`language_code_id`) REFERENCES `languages`(`id`) ON DELETE CASCADE,
  283.     FOREIGN KEY (`surname_id`) REFERENCES `surname`(`id`) ON DELETE CASCADE,
  284.     UNIQUE KEY `unique_surname_language` (`surname_id`, `language_code_id`)
  285. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  286.  
  287. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('नकुम', 1, 2);
  288. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('નકુમ', 1, 3);
  289.  
  290. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('राठोड', 2, 2);
  291. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('રાઠોડ', 2, 3);
  292.  
  293. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('परमार', 3, 2);
  294. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('પરમાર', 3, 3);
  295.  
  296. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('हेरमा', 4, 2);
  297. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('હેરમા', 4, 3);
  298.  
  299. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('मकवाणा', 5, 2);
  300. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('મકવાણા', 5, 3);
  301.  
  302. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('डोडिया', 6, 2);
  303. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('ડોડિયા', 6, 3);
  304.  
  305. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('साकरिया', 7, 2);
  306. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('સાકરિયા', 7, 3);
  307.  
  308. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('वाढेर', 8, 2);
  309. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('વાઢેર', 8, 3);
  310.  
  311. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('सिंधव', 9, 2);
  312. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('સિંધવ', 9, 3);
  313.  
  314. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('चौहाण', 10, 2);
  315. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('ચૌહાણ', 10, 3);
  316.  
  317. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('सोलंकी', 11, 2);
  318. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('સોલંકી', 11, 3);
  319.  
  320. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('झाला', 12, 2);
  321. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('ઝાલા', 12, 3);
  322.  
  323. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('पढारिया', 13, 2);
  324. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('પઢારિયા', 13, 3);
  325.  
  326. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('पढियार', 14, 2);
  327. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('પઢિયાર', 14, 3);
  328.  
  329. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('बारड', 15, 2);
  330. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('બારડ', 15, 3);
  331.  
  332. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('वाळा', 16, 2);
  333. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('વાળા', 16, 3);
  334.  
  335. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('खेर', 17, 2);
  336. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('ખેર', 17, 3);
  337.  
  338. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('असवार', 18, 2);
  339. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('અસવાર', 18, 3);
  340.  
  341. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('जणकाट', 19, 2);
  342. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('જણકાટ', 19, 3);
  343.  
  344. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('मोरी', 20, 2);
  345. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('મોરી', 20, 3);
  346.  
  347. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('जादव', 21, 2);
  348. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('જાદવ', 21, 3);
  349.  
  350. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('डाभी', 22, 2);
  351. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('ડાભી', 22, 3);
  352.  
  353. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('वनार', 23, 2);
  354. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('વનાર', 23, 3);
  355.  
  356. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('गोहिल', 24, 2);
  357. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('ગોહિલ', 24, 3);
  358.  
  359. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('टांक', 25, 2);
  360. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('ટાંક', 25, 3);
  361.  
  362. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('भाडलिया', 26, 2);
  363. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('ભાડલિયા', 26, 3);
  364.  
  365. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('यादव', 27, 2);
  366. INSERT INTO `surname_translation` (`translation`,`surname_id`,`language_code_id`) VALUES ('યાદવ', 27, 3);
  367.  
  368. -- Create occupation_types table
  369. CREATE TABLE occupation_types (
  370.     `id` INT AUTO_INCREMENT PRIMARY KEY,
  371.     `name` VARCHAR(100) NOT NULL,
  372.     `status` TINYINT(1) DEFAULT 0 NOT NULL,
  373.     `created_by` INT NOT NULL DEFAULT 0 COMMENT 'Create Person ID',
  374.     `updated_by` INT NOT NULL DEFAULT 0 COMMENT 'Update Person ID',
  375.     `created_at` DATETIME NULL DEFAULT NULL,
  376.     `updated_at` DATETIME NULL DEFAULT NULL
  377. )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  378.  
  379. -- Insert data into occupation_types
  380. INSERT INTO occupation_types (`name`, `status`) VALUES
  381. ('Healthcare & Medical', 1),
  382. ('Education & Training', 1),
  383. ('Information Technology (IT)', 1),
  384. ('Engineering & Architecture', 1),
  385. ('Finance & Accounting', 1),
  386. ('Legal & Law Enforcement', 1),
  387. ('Business & Management', 1),
  388. ('Arts, Design & Media', 1),
  389. ('Skilled Trades & Technical', 1),
  390. ('Sales & Customer Service', 1),
  391. ('Hospitality & Tourism', 1),
  392. ('Transportation & Logistics', 1),
  393. ('Agriculture, Food & Natural Resources', 1),
  394. ('Science & Research', 1),
  395. ('Public Administration & Government', 1),
  396. ('Other', 1);
  397.  
  398. INSERT INTO occupation_types (`name`, `status`) VALUES
  399. ('Sports & Recreation', 1),
  400. ('Social & Community Services', 1),
  401. ('Beauty & Wellness', 1),
  402. ('Real Estate & Property', 1),
  403. ('Religion & Spirituality', 1),
  404. ('Entertainment & Performing Arts', 1),
  405. ('Military & Defense', 1),
  406. ('Childcare & Early Education', 1),
  407. ('Environment & Sustainability', 1),
  408. ('Construction & Manual Labor', 1);
  409.  
  410. -- Create occupations table
  411. CREATE TABLE occupation (
  412.     `id` INT AUTO_INCREMENT PRIMARY KEY,
  413.     `occupation_type_id` INT NOT NULL,
  414.     `name` VARCHAR(100) NOT NULL,
  415.     `status` TINYINT(1) DEFAULT 0 NOT NULL,
  416.     `created_by` INT NOT NULL DEFAULT 0 COMMENT 'Create Person ID',
  417.     `updated_by` INT NOT NULL DEFAULT 0 COMMENT 'Update Person ID',
  418.     `created_at` DATETIME NULL DEFAULT NULL,
  419.     `updated_at` DATETIME NULL DEFAULT NULL,
  420.     FOREIGN KEY (occupation_type_id) REFERENCES occupation_types(id) ON DELETE CASCADE
  421. )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
  422.  
  423. -- Insert initial data into occupations
  424. INSERT INTO occupation (`occupation_type_id`, `name`, `status`) VALUES
  425. -- 1. Healthcare & Medical
  426. (1, 'Doctor', 1),
  427. (1, 'Nurse', 1),
  428. (1, 'Surgeon', 1),
  429. (1, 'Pharmacist', 1),
  430. (1, 'Dentist', 1),
  431. (1, 'Medical Laboratory Technician', 1),
  432. (1, 'Physical Therapist', 1),
  433.  
  434. -- 2. Education & Training
  435. (2, 'Teacher', 1),
  436. (2, 'University Professor', 1),
  437. (2, 'School Counselor', 1),
  438. (2, 'Special Education Teacher', 1),
  439. (2, 'Corporate Trainer', 1),
  440. (2, 'Instructional Designer', 1),
  441. (2, 'Librarian', 1),
  442.  
  443. -- 3. Information Technology (IT)
  444. (3, 'Software Developer', 1),
  445. (3, 'Systems Analyst', 1),
  446. (3, 'Network Administrator', 1),
  447. (3, 'Data Scientist', 1),
  448. (3, 'Cybersecurity Specialist', 1),
  449. (3, 'IT Support Technician', 1),
  450.  
  451. -- 4. Engineering & Architecture
  452. (4, 'Civil Engineer', 1),
  453. (4, 'Mechanical Engineer', 1),
  454. (4, 'Electrical Engineer', 1),
  455. (4, 'Architect', 1),
  456. (4, 'Structural Engineer', 1),
  457. (4, 'CAD Technician', 1),
  458.  
  459. -- 5. Finance & Accounting
  460. (5, 'Accountant', 1),
  461. (5, 'Financial Analyst', 1),
  462. (5, 'Auditor', 1),
  463. (5, 'Tax Consultant', 1),
  464. (5, 'Investment Banker', 1),
  465. (5, 'Bookkeeper', 1),
  466.  
  467. -- 6. Legal & Law Enforcement
  468. (6, 'Lawyer', 1),
  469. (6, 'Judge', 1),
  470. (6, 'Police Officer', 1),
  471. (6, 'Paralegal', 1),
  472. (6, 'Correctional Officer', 1),
  473. (6, 'Legal Assistant', 1),
  474.  
  475. -- 7. Business & Management
  476. (7, 'Business Analyst', 1),
  477. (7, 'Marketing Manager', 1),
  478. (7, 'Project Manager', 1),
  479. (7, 'Human Resources Specialist', 1),
  480. (7, 'Chief Executive Officer - CEO', 1),
  481. (7, 'Operations Manager', 1),
  482. (7, 'Entrepreneur - Business Owner', 1),
  483. (7, 'Consultant', 1),
  484.  
  485. -- 8. Arts, Design & Media
  486. (8, 'Graphic Designer', 1),
  487. (8, 'Photographer', 1),
  488. (8, 'Animator', 1),
  489. (8, 'Art Director', 1),
  490. (8, 'Journalist', 1),
  491. (8, 'Copywriter', 1),
  492. (8, 'Musician', 1),
  493. (8, 'Writer', 1),
  494.  
  495. -- 9. Skilled Trades & Technical
  496. (9, 'Electrician', 1),
  497. (9, 'Plumber', 1),
  498. (9, 'Carpenter', 1),
  499. (9, 'Welder', 1),
  500. (9, 'Auto Mechanic', 1),
  501. (9, 'HVAC Technician', 1),
  502.  
  503. -- 10. Sales & Customer Service
  504. (10, 'Sales Representative', 1),
  505. (10, 'Retail Associate', 1),
  506. (10, 'Call Center Agent', 1),
  507. (10, 'Customer Success Manager', 1),
  508. (10, 'Account Executive', 1),
  509.  
  510. -- 11. Hospitality & Tourism
  511. (11, 'Hotel Manager', 1),
  512. (11, 'Chef', 1),
  513. (11, 'Travel Agent', 1),
  514. (11, 'Tour Guide', 1),
  515. (11, 'Waiter/Waitress', 1),
  516. (11, 'Event Coordinator', 1),
  517.  
  518. -- 12. Transportation & Logistics
  519. (12, 'Truck Driver', 1),
  520. (12, 'Delivery Person', 1),
  521. (12, 'Warehouse Manager', 1),
  522. (12, 'Supply Chain Analyst', 1),
  523. (12, 'Pilot', 1),
  524. (12, 'Train Operator', 1),
  525.  
  526. -- 13. Agriculture, Food & Natural Resources
  527. (13, 'Farmer', 1),
  528. (13, 'Agricultural Technician', 1),
  529. (13, 'Food Scientist', 1),
  530. (13, 'Horticulturist', 1),
  531. (13, 'Fishery Worker', 1),
  532.  
  533. -- 14. Science & Research
  534. (14, 'Biologist', 1),
  535. (14, 'Chemist', 1),
  536. (14, 'Environmental Scientist', 1),
  537. (14, 'Physicist', 1),
  538. (14, 'Research Assistant', 1),
  539.  
  540. -- 15. Public Administration & Government
  541. (15, 'Policy Analyst', 1),
  542. (15, 'Urban Planner', 1),
  543. (15, 'Government Officer', 1),
  544. (15, 'Diplomat', 1),
  545. (15, 'Customs Officer', 1),
  546.  
  547. -- 16. Other
  548. (16, 'Other', 1),
  549. (16, 'Homemaker', 1),
  550. (16, 'Student', 1),
  551. (16, 'Unemployed', 1),
  552. (16, 'Retired', 1),
  553.  
  554. -- 17. Sports & Recreation
  555. (17, 'Athlete', 1),
  556. (17, 'Coach', 1),
  557. (17, 'Fitness Trainer', 1),
  558. (17, 'Sports Official / Referee', 1),
  559.  
  560. -- 18. Social & Community Services
  561. (18, 'Social Worker', 1),
  562. (18, 'Community Outreach Coordinator', 1),
  563. (18, 'Nonprofit Manager', 1),
  564. (18, 'Substance Abuse Counselor', 1),
  565.  
  566. -- 19. Beauty & Wellness
  567. (19, 'Hairdresser / Hairstylist', 1),
  568. (19, 'Barber', 1),
  569. (19, 'Massage Therapist', 1),
  570. (19, 'Esthetician', 1),
  571.  
  572. -- 20. Real Estate & Property
  573. (20, 'Real Estate Agent', 1),
  574. (20, 'Property Manager', 1),
  575. (20, 'Appraiser', 1),
  576.  
  577. -- 21. Religion & Spirituality
  578. (21, 'Clergy / Pastor', 1),
  579. (21, 'Religious Educator', 1),
  580. (21, 'Imam', 1),
  581. (21, 'Rabbi', 1),
  582.  
  583. -- 22. Entertainment & Performing Arts
  584. (22, 'Actor / Actress', 1),
  585. (22, 'Comedian', 1),
  586. (22, 'TV Host / Presenter', 1),
  587. (22, 'Stage Performer', 1),
  588.  
  589. -- 23. Military & Defense
  590. (23, 'Soldier / Military Personnel', 1),
  591. (23, 'Defense Analyst', 1),
  592. (23, 'Intelligence Officer', 1),
  593.  
  594. -- 24. Childcare & Early Education
  595. (24, 'Daycare Worker', 1),
  596. (24, 'Preschool Teacher', 1),
  597. (24, 'Nanny', 1),
  598.  
  599. -- 25. Environment & Sustainability
  600. (25, 'Environmental Consultant', 1),
  601. (25, 'Renewable Energy Technician', 1),
  602. (25, 'Climate Scientist', 1),
  603. (25, 'Recycling Coordinator', 1),
  604.  
  605. -- 26. Construction & Manual Labor
  606. (26, 'Construction Worker', 1),
  607. (26, 'Janitor / Cleaner', 1),
  608. (26, 'Mover', 1);
  609. -- --------------------------------------------------------
  610.  
  611. COMMIT;
Advertisement
Add Comment
Please, Sign In to add comment