-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New refactored SQL DB to contain the new data
- Loading branch information
KoofNG
committed
Jan 28, 2019
1 parent
01505b8
commit 45df9ae
Showing
1 changed file
with
12 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
-- https://www.phpmyadmin.net/ | ||
-- | ||
-- Host: 127.0.0.1 | ||
-- Generation Time: Dec 14, 2018 at 10:36 PM | ||
-- Generation Time: Jan 20, 2019 at 08:00 PM | ||
-- Server version: 10.1.36-MariaDB | ||
-- PHP Version: 7.2.11 | ||
|
||
|
@@ -29,12 +29,12 @@ SET time_zone = "+00:00"; | |
-- | ||
|
||
CREATE TABLE `tbl_registered_citizens` ( | ||
`userid` int(4) NOT NULL, | ||
`fullname` varchar(256) NOT NULL, | ||
`userId` int(4) NOT NULL, | ||
`fullName` varchar(256) NOT NULL, | ||
`dob` date NOT NULL, | ||
`age` int(4) NOT NULL, | ||
`gender` char(1) NOT NULL, | ||
`ethnicgroup` varchar(50) NOT NULL, | ||
`ethnicGroup` varchar(50) NOT NULL, | ||
`stateOfOrigin` varchar(50) NOT NULL, | ||
`lga` varchar(50) NOT NULL, | ||
`hometown` varchar(50) NOT NULL, | ||
|
@@ -44,29 +44,21 @@ CREATE TABLE `tbl_registered_citizens` ( | |
`occupation` varchar(50) NOT NULL, | ||
`phoneNumber` varchar(50) DEFAULT NULL, | ||
`email` varchar(256) DEFAULT NULL, | ||
`profilepicture` varchar(256) NOT NULL, | ||
`profilePicture` varchar(256) NOT NULL, | ||
`homeAddress` varchar(256) NOT NULL, | ||
`BVN` int(10) DEFAULT NULL, | ||
`NIM` int(20) DEFAULT NULL, | ||
`VIN` varchar(255) DEFAULT NULL, | ||
`passportNumber` varchar(255) DEFAULT NULL, | ||
`timeStamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP | ||
) ENGINE=InnoDB DEFAULT CHARSET=latin1; | ||
|
||
-- | ||
-- Dumping data for table `tbl_registered_citizens` | ||
-- | ||
|
||
INSERT INTO `tbl_registered_citizens` (`userid`, `fullname`, `dob`, `age`, `gender`, `ethnicgroup`, `stateOfOrigin`, `lga`, `hometown`, `stateOfResidence`, `lgaOfResidence`, `religion`, `occupation`, `phoneNumber`, `email`, `profilepicture`, `timeStamp`) VALUES | ||
(1, 'Israel Akpan', '1995-05-24', 23, 'M', 'Ibibio', 'Akwa Ibom', 'Uyo', 'Uyo', 'Ondo', 'Owo', 'Christianity', 'Software Developer', '08132218543', '[email protected]', '', '2018-12-14 18:12:40'), | ||
(2, 'Ajayi Crowther', '1905-05-24', 103, 'M', 'Yoruba', 'Ondo', 'Ondo', 'iyo', 'Abuja', 'Garaki', 'Christianity', 'Teacher', '', '', '', '2018-12-14 19:57:51'), | ||
(4, 'Ajayi Fletcher', '1905-06-24', 50, 'F', 'Yoruba', 'Ondo', 'Ondo', 'iyo', 'London', 'Gar', 'Islam', 'Developer', '080123456789', '[email protected]', '', '2018-12-14 21:21:52'), | ||
(5, 'Fletcher Iyo', '1955-06-04', 76, 'F', 'Yoruba', 'Ondo', 'Ondo', 'iyo', 'Ikale', 'Gar', 'Islam', 'Developer', '080123456789', '[email protected]', '', '2018-12-14 20:01:22'); | ||
|
||
-- | ||
-- Indexes for dumped tables | ||
-- | ||
|
||
-- | ||
-- Indexes for table `tbl_registered_citizens` | ||
-- | ||
ALTER TABLE `tbl_registered_citizens` | ||
ADD PRIMARY KEY (`userid`); | ||
ADD PRIMARY KEY (`userId`); | ||
|
||
-- | ||
-- AUTO_INCREMENT for dumped tables | ||
|
@@ -76,7 +68,7 @@ ALTER TABLE `tbl_registered_citizens` | |
-- AUTO_INCREMENT for table `tbl_registered_citizens` | ||
-- | ||
ALTER TABLE `tbl_registered_citizens` | ||
MODIFY `userid` int(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; | ||
MODIFY `userId` int(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1; | ||
COMMIT; | ||
|
||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; | ||
|