--
-- Host: localhost    Database: fmedia_unicitydemo
-- ------------------------------------------------------


--
-- Table structure for table `admin`
--

CREATE TABLE `admin` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) DEFAULT NULL,
  `salt` varchar(255) DEFAULT NULL,
  `hash` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `admin`
--

INSERT INTO `admin` VALUES (7,'admin','2006133138585747dfd9b595.07989311','$2y$10$W/5LYQXEoBqqy7h9A3utI.dvIafphjLMXOMnC.qNLehRI0K.I4vzm','Muhammad Rizky');

--
-- Table structure for table `ci_sessions`
--

CREATE TABLE `ci_sessions` (
  `id` varchar(40) NOT NULL,
  `ip_address` varchar(45) NOT NULL,
  `timestamp` int(10) unsigned NOT NULL DEFAULT 0,
  `data` blob NOT NULL,
  PRIMARY KEY (`id`),
  KEY `ci_sessions_timestamp` (`timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `ci_sessions`
--


--
-- Table structure for table `question`
--

CREATE TABLE `question` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `text` text DEFAULT NULL,
  `feel_yes` varchar(45) DEFAULT NULL,
  `feel_no` varchar(45) DEFAULT NULL,
  `look_yes` varchar(45) DEFAULT NULL,
  `look_no` varchar(45) DEFAULT NULL,
  `live_yes` varchar(45) DEFAULT NULL,
  `live_no` varchar(45) DEFAULT NULL,
  `order` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `question`
--

INSERT INTO `question` VALUES (1,'Apakah Anda sering merasakan sakit atau lelah ?','-2','+2',NULL,NULL,NULL,NULL,1),(2,'Apakah Anda merasa percaya diri dengan penampilan Anda ?',NULL,NULL,'+2','-2',NULL,NULL,2),(3,'Apakah Anda menikmati kehidupan Anda sehari - hari?','','',NULL,NULL,'+2','-2',3),(4,'Apakah Anda mengkonsumsi sayur atau buah-buahan setiap hari ?','+2','-2',NULL,NULL,NULL,NULL,4),(5,'Apakah Anda merasa memiliki ukuran tubuh yang ideal ?',NULL,NULL,'+2','-2',NULL,NULL,5),(6,'Apakah Anda merasa memiliki pendapatan yang cukup ? ',NULL,NULL,NULL,NULL,'+2','-2',6),(7,'Apakah Anda tidur minimal  8 jam setiap hari ?','+1','-1',NULL,NULL,'+1','-1',7),(8,'Apakah Anda kesulitan dalam membeli pakaian yang sesuai dengan ukuran Anda ?',NULL,NULL,'-2','+2',NULL,NULL,8),(9,'Apakah Anda memiliki waktu untuk berolah raga minimal 30 menit sehari ?','+1','-1',NULL,NULL,'+1','-1',9),(10,'Hal utama apa yang paling penting dalam kehidupan kamu ?',NULL,NULL,NULL,NULL,NULL,NULL,10);

--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `email` varchar(255) DEFAULT NULL,
  `salt` varchar(255) DEFAULT NULL,
  `hash` varchar(255) DEFAULT NULL,
  `name` varchar(255) DEFAULT NULL,
  `birthday` date DEFAULT NULL,
  `phone` varchar(13) DEFAULT NULL,
  `address` text DEFAULT NULL,
  `know` enum('member_unicity','facebook_page','facebook_ads','other') DEFAULT 'facebook_page',
  `other` text DEFAULT NULL,
  `referral_id` varchar(255) DEFAULT NULL,
  `memberId` varchar(255) NOT NULL,
  `category` enum('look','live','feel') DEFAULT NULL,
  `photo_after` varchar(255) DEFAULT NULL,
  `photo_before` varchar(255) DEFAULT NULL,
  `date_register` datetime NOT NULL,
  `photo_merge` varchar(100) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'ramadhanns@gmail.com','6168087586cabd9568a12.22829456','$2y$10$PG1.P.54IGTX/hoscwubheMesMqLVEBf3s6hNUiVvojVo3DQV43S2','Imam Ramadhan','1980-04-19','09999992223','Jalan raya','facebook_page','',NULL,'','feel','1485712607.JPG','1485712596.jpg','2017-01-04 08:01:29','9235.jpg'),(2,'admin@admin.com','1949163993586f19ec2c9827.09575503','$2y$10$JVmJAf/qMc2S8ELlz9ahNOYvlZDITcqyZfZhfxDpZe/bXiZ.H7TEi','Admin aja','1990-02-28','088888866688','Jalan',NULL,NULL,NULL,'ahay',NULL,NULL,NULL,'2017-01-06 04:15:40',''),(3,'diz_connect@yahoo.com','9080881535874dd7a68fa96.22423548','$2y$10$Mf6jQ9iSr.IZZSCoZkymLOBUvpy3QVuWrYpu0Wv5KsyAP4BqtWLCC','donny','1986-10-02','567983437','234234','facebook_page','',NULL,'','feel','1484053960.jpg','1484053943.jpg','2017-01-10 13:11:22','9454.jpg');


