Advertisement
Guest User

asadsds

a guest
Nov 26th, 2015
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. CREATE TABLE `userdata` (
  2. `id` int(11) NOT NULL AUTO_INCREMENT,
  3. `username` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
  4. `upper_username` varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
  5. `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  6. `password_hash` varchar(60) COLLATE utf8_unicode_ci DEFAULT NULL,
  7. `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  8. `firstname` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  9. `lastname` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
  10. `user_type` tinyint(2) NOT NULL DEFAULT '1',
  11. `gender` varchar(1) COLLATE utf8_unicode_ci NOT NULL COMMENT 'cinsiyet',
  12. `id_authenticated` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'kullanici kimlik onaylimi',
  13. `id_auth_date` int(11) NOT NULL DEFAULT '0' COMMENT 'kimlik onayli olma tarihi',
  14. `birthday` date NOT NULL DEFAULT '0000-00-00' COMMENT 'yyyy-mm-dd',
  15. `feedback_score` int(11) NOT NULL DEFAULT '0',
  16. `feedback_count` int(11) NOT NULL DEFAULT '0',
  17. `feedback_positive_count` int(11) NOT NULL DEFAULT '0',
  18. `feedback_positive_rate` float NOT NULL DEFAULT '0',
  19. `feedback_seller_count` int(11) NOT NULL COMMENT 'Satici iken aldigi rating adedi',
  20. `feedback_description` float NOT NULL DEFAULT '0',
  21. `feedback_communication` float NOT NULL DEFAULT '0',
  22. `feedback_cargospeed` float NOT NULL DEFAULT '0',
  23. `feedback_cargoprice` float NOT NULL DEFAULT '0',
  24. `secret_question` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'gizli soru',
  25. `secret_answer` varchar(50) COLLATE utf8_unicode_ci NOT NULL COMMENT 'gizli soru cevabi',
  26. `education` smallint(3) NOT NULL DEFAULT '0' COMMENT 'egitim durumu',
  27. `job` smallint(3) NOT NULL DEFAULT '0',
  28. `account_balance` double(7,2) NOT NULL DEFAULT '0.00',
  29. `gsm_authenticated` tinyint(1) NOT NULL DEFAULT '0',
  30. `gsm_auth_date` int(11) NOT NULL DEFAULT '0',
  31. `score` double(5,2) NOT NULL DEFAULT '0.00',
  32. `sms` smallint(6) NOT NULL DEFAULT '0',
  33. `newsletter` int(11) NOT NULL DEFAULT '1',
  34. `language` varchar(3) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'tr',
  35. `birthday_email` int(11) NOT NULL DEFAULT '0',
  36. `date_joined` int(11) NOT NULL DEFAULT '0',
  37. `last_online` int(11) NOT NULL DEFAULT '0',
  38. `ip_address` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
  39. `session_online` int(11) NOT NULL DEFAULT '0',
  40. `auth_method` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0=pasif, 1=email, 2=sms, 3=admin',
  41. `registration_code` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
  42. `status` tinyint(1) NOT NULL DEFAULT '0',
  43. `photo_last_updated` int(11) NOT NULL DEFAULT '0',
  44. PRIMARY KEY (`id`),
  45. UNIQUE KEY `indx_userdata_email` (`email`),
  46. UNIQUE KEY `indx_upper_username` (`upper_username`),
  47. KEY `indx_member_date_joined` (`date_joined`),
  48. KEY `indx_userdata_status` (`status`),
  49. KEY `indx_user_gsmauth` (`gsm_authenticated`,`gsm_auth_date`),
  50. KEY `indx_userdata_name` (`firstname`,`lastname`),
  51. KEY `indx_userdata_username` (`username`),
  52. KEY `indx_photo_last_updated` (`photo_last_updated`),
  53. KEY `indx_auth_method_gsm_auth_date` (`auth_method`,`gsm_auth_date`)
  54. ) ENGINE=InnoDB AUTO_INCREMENT=23029617 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement