forked from lmadhuranga/Crud-Generator-Restapi-Codeigniter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample_db.sql
73 lines (59 loc) · 2.24 KB
/
sample_db.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
-- phpMyAdmin SQL Dump
-- version 3.3.9
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jun 11, 2015 at 08:27 PM
-- Server version: 5.5.8
-- PHP Version: 5.3.5
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!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 utf8 */;
--
-- Database: `sample_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `tbl_option`
--
CREATE TABLE IF NOT EXISTS `tbl_option` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`option_name` text,
`variable_name` text,
`option_value` text,
`scale` varchar(100) DEFAULT NULL,
`option_type` varchar(100) DEFAULT NULL,
`created` datetime DEFAULT NULL,
`modified` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `tbl_option`
--
INSERT INTO `tbl_option` (`id`, `option_name`, `variable_name`, `option_value`, `scale`, `option_type`, `created`, `modified`) VALUES
(1, 'Site name', 'site_name', 'Mad framework', '13', 'string', '2014-10-10 20:18:05', '2014-10-10 20:18:14'),
(2, 'Address', 'address1', 'Kirulaponne', '11', '1', '2014-10-10 20:20:49', '2014-10-10 20:20:51');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_user`
--
CREATE TABLE IF NOT EXISTS `tbl_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fname` varchar(45) NOT NULL,
`lname` varchar(45) NOT NULL,
`email` varchar(45) NOT NULL,
`password` varchar(250) NOT NULL,
`img` varchar(45) DEFAULT 'default.jpg',
`user_type` int(11) DEFAULT '1' COMMENT '0=admin, 1=''member'',',
`enable` char(1) DEFAULT '1' COMMENT '1 = Enable,\n0 =Disbale',
`created` datetime DEFAULT NULL,
`modified` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `tbl_user`
--
INSERT INTO `tbl_user` (`id`, `fname`, `lname`, `email`, `password`, `img`, `user_type`, `enable`, `created`, `modified`) VALUES
(1, 'Madhuranga', 'Senadheera', '[email protected]', 'aa', 'default.jpg', 1, '1', NULL, NULL);