Advertisement
adewaleA4

bomstructure

Mar 20th, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.67 KB | None | 0 0
  1. -- MySQL dump 10.13 Distrib 5.5.37, for debian-linux-gnu (x86_64)
  2. --
  3. -- Host: localhost Database: bomcloud
  4. -- ------------------------------------------------------
  5. -- Server version 5.5.37-0ubuntu0.14.04.1
  6.  
  7. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  8. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  9. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  10. /*!40101 SET NAMES utf8 */;
  11. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  12. /*!40103 SET TIME_ZONE='+00:00' */;
  13. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  14. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  15. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  16. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  17.  
  18. --
  19. -- Table structure for table `account_opening`
  20. --
  21.  
  22. use bomcloud;
  23.  
  24. DROP TABLE IF EXISTS `account_opening`;
  25. /*!40101 SET @saved_cs_client = @@character_set_client */;
  26. /*!40101 SET character_set_client = utf8 */;
  27. CREATE TABLE `account_opening` (
  28. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  29. `request_date` datetime DEFAULT NULL,
  30. `location` varchar(255) DEFAULT NULL,
  31. `first_name` varchar(255) DEFAULT NULL,
  32. `last_name` varchar(255) DEFAULT NULL,
  33. `middle_name` varchar(255) DEFAULT NULL,
  34. `address` varchar(255) DEFAULT NULL,
  35. `email` varchar(255) DEFAULT NULL,
  36. `gender` varchar(255) DEFAULT NULL,
  37. `salutation` varchar(255) DEFAULT NULL,
  38. `phone_number` varchar(255) DEFAULT NULL,
  39. `date_of_birth` datetime DEFAULT NULL,
  40. `response_code` varchar(255) DEFAULT NULL,
  41. `response_message` varchar(255) DEFAULT NULL,
  42. `is_offline` tinyint(1) DEFAULT '0',
  43. `response_date` datetime DEFAULT NULL,
  44. `dsa_id` bigint(20) DEFAULT NULL,
  45. `device_id` bigint(20) DEFAULT NULL,
  46. `financial_institution_id` bigint(20) DEFAULT NULL,
  47. PRIMARY KEY (`id`),
  48. KEY `ix_account_opening_dsa_1` (`dsa_id`),
  49. KEY `ix_account_opening_device_2` (`device_id`),
  50. KEY `ix_account_opening_financialInstitution_3` (`financial_institution_id`),
  51. CONSTRAINT `fk_account_opening_device_2` FOREIGN KEY (`device_id`) REFERENCES `device` (`id`),
  52. CONSTRAINT `fk_account_opening_dsa_1` FOREIGN KEY (`dsa_id`) REFERENCES `dsa` (`id`),
  53. CONSTRAINT `fk_account_opening_financialInstitution_3` FOREIGN KEY (`financial_institution_id`) REFERENCES `financial_institution` (`id`)
  54. ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
  55. /*!40101 SET character_set_client = @saved_cs_client */;
  56.  
  57. --
  58. -- Table structure for table `audit_trail`
  59. --
  60.  
  61. DROP TABLE IF EXISTS `audit_trail`;
  62. /*!40101 SET @saved_cs_client = @@character_set_client */;
  63. /*!40101 SET character_set_client = utf8 */;
  64. CREATE TABLE `audit_trail` (
  65. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  66. `event` varchar(255) DEFAULT NULL,
  67. `message` varchar(255) DEFAULT NULL,
  68. `user_id` bigint(20) DEFAULT NULL,
  69. `event_date` datetime DEFAULT NULL,
  70. `additional` varchar(255) DEFAULT NULL,
  71. `affected_entity_id` bigint(20) DEFAULT NULL,
  72. `financial_institution_id` bigint(20) DEFAULT NULL,
  73. `device_id` bigint(20) DEFAULT NULL,
  74. `ip_address` varchar(255) DEFAULT NULL,
  75. `username` varchar(255) DEFAULT NULL,
  76. PRIMARY KEY (`id`),
  77. KEY `ix_audit_trail_user_4` (`user_id`),
  78. KEY `ix_audit_trail_financialInstitution_5` (`financial_institution_id`),
  79. KEY `ix_audit_trail_device_6` (`device_id`),
  80. CONSTRAINT `fk_audit_trail_device_6` FOREIGN KEY (`device_id`) REFERENCES `device` (`id`),
  81. CONSTRAINT `fk_audit_trail_financialInstitution_5` FOREIGN KEY (`financial_institution_id`) REFERENCES `financial_institution` (`id`),
  82. CONSTRAINT `fk_audit_trail_user_4` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
  83. ) ENGINE=InnoDB AUTO_INCREMENT=152 DEFAULT CHARSET=utf8;
  84. /*!40101 SET character_set_client = @saved_cs_client */;
  85.  
  86. --
  87. -- Table structure for table `branch`
  88. --
  89.  
  90. DROP TABLE IF EXISTS `branch`;
  91. /*!40101 SET @saved_cs_client = @@character_set_client */;
  92. /*!40101 SET character_set_client = utf8 */;
  93. CREATE TABLE `branch` (
  94. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  95. `branch_name` varchar(255) DEFAULT NULL,
  96. `branch_code` varchar(255) DEFAULT NULL,
  97. `is_enabled` tinyint(1) DEFAULT '0',
  98. `financial_institution_id` bigint(20) DEFAULT NULL,
  99. PRIMARY KEY (`id`),
  100. KEY `ix_branch_financialInstitution_7` (`financial_institution_id`),
  101. CONSTRAINT `fk_branch_financialInstitution_7` FOREIGN KEY (`financial_institution_id`) REFERENCES `financial_institution` (`id`)
  102. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
  103. /*!40101 SET character_set_client = @saved_cs_client */;
  104.  
  105. --
  106. -- Table structure for table `config`
  107. --
  108.  
  109. DROP TABLE IF EXISTS `config`;
  110. /*!40101 SET @saved_cs_client = @@character_set_client */;
  111. /*!40101 SET character_set_client = utf8 */;
  112. CREATE TABLE `config` (
  113. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  114. `config_name` varchar(255) DEFAULT NULL,
  115. `config_value` int(11) DEFAULT NULL,
  116. `financial_institution_id` bigint(20) DEFAULT NULL,
  117. PRIMARY KEY (`id`),
  118. KEY `ix_config_financialInstitution_8` (`financial_institution_id`),
  119. CONSTRAINT `fk_config_financialInstitution_8` FOREIGN KEY (`financial_institution_id`) REFERENCES `financial_institution` (`id`)
  120. ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
  121. /*!40101 SET character_set_client = @saved_cs_client */;
  122.  
  123. --
  124. -- Table structure for table `device`
  125. --
  126.  
  127. DROP TABLE IF EXISTS `device`;
  128. /*!40101 SET @saved_cs_client = @@character_set_client */;
  129. /*!40101 SET character_set_client = utf8 */;
  130. CREATE TABLE `device` (
  131. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  132. `brand` varchar(255) DEFAULT NULL,
  133. `model` varchar(255) DEFAULT NULL,
  134. `os` varchar(255) DEFAULT NULL,
  135. `device_uid` varchar(255) DEFAULT NULL,
  136. `is_enabled` tinyint(1) DEFAULT '0',
  137. `financial_institution_id` bigint(20) DEFAULT NULL,
  138. `dsa_id` bigint(20) DEFAULT NULL,
  139. PRIMARY KEY (`id`),
  140. KEY `ix_device_financialInstitution_9` (`financial_institution_id`),
  141. KEY `ix_device_dsa_10` (`dsa_id`),
  142. CONSTRAINT `fk_device_dsa_10` FOREIGN KEY (`dsa_id`) REFERENCES `dsa` (`id`),
  143. CONSTRAINT `fk_device_financialInstitution_9` FOREIGN KEY (`financial_institution_id`) REFERENCES `financial_institution` (`id`)
  144. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
  145. /*!40101 SET character_set_client = @saved_cs_client */;
  146.  
  147. --
  148. -- Table structure for table `device_history`
  149. --
  150.  
  151. DROP TABLE IF EXISTS `device_history`;
  152. /*!40101 SET @saved_cs_client = @@character_set_client */;
  153. /*!40101 SET character_set_client = utf8 */;
  154. CREATE TABLE `device_history` (
  155. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  156. `event_type` varchar(255) DEFAULT NULL,
  157. `ip_address` varchar(255) DEFAULT NULL,
  158. `user_id` bigint(20) DEFAULT NULL,
  159. `financial_institution_id` bigint(20) DEFAULT NULL,
  160. `device_id` bigint(20) DEFAULT NULL,
  161. `event_date` datetime NOT NULL,
  162. PRIMARY KEY (`id`),
  163. KEY `ix_device_history_user_11` (`user_id`),
  164. KEY `ix_device_history_financialInstitution_12` (`financial_institution_id`),
  165. KEY `ix_device_history_device_13` (`device_id`),
  166. CONSTRAINT `fk_device_history_device_13` FOREIGN KEY (`device_id`) REFERENCES `device` (`id`),
  167. CONSTRAINT `fk_device_history_financialInstitution_12` FOREIGN KEY (`financial_institution_id`) REFERENCES `financial_institution` (`id`),
  168. CONSTRAINT `fk_device_history_user_11` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
  169. ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8;
  170. /*!40101 SET character_set_client = @saved_cs_client */;
  171.  
  172. --
  173. -- Table structure for table `dsa`
  174. --
  175.  
  176. DROP TABLE IF EXISTS `dsa`;
  177. /*!40101 SET @saved_cs_client = @@character_set_client */;
  178. /*!40101 SET character_set_client = utf8 */;
  179. CREATE TABLE `dsa` (
  180. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  181. `till_account` varchar(255) DEFAULT NULL,
  182. `user_id` bigint(20) NOT NULL,
  183. PRIMARY KEY (`id`),
  184. KEY `ix_dsa_user_14` (`user_id`),
  185. CONSTRAINT `fk_dsa_user_14` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
  186. ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
  187. /*!40101 SET character_set_client = @saved_cs_client */;
  188.  
  189. --
  190. -- Table structure for table `financial_institution`
  191. --
  192.  
  193. DROP TABLE IF EXISTS `financial_institution`;
  194. /*!40101 SET @saved_cs_client = @@character_set_client */;
  195. /*!40101 SET character_set_client = utf8 */;
  196. CREATE TABLE `financial_institution` (
  197. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  198. `code` varchar(255) DEFAULT NULL,
  199. `ip_address` varchar(255) DEFAULT NULL,
  200. `switch_key` varchar(255) DEFAULT NULL,
  201. `name` varchar(255) DEFAULT NULL,
  202. `account_opening_end_point` varchar(255) DEFAULT NULL,
  203. `is_enabled` tinyint(1) DEFAULT '0',
  204. PRIMARY KEY (`id`),
  205. UNIQUE KEY `uq_financial_institution_code` (`code`),
  206. UNIQUE KEY `uq_financial_institution_ip_address` (`ip_address`),
  207. UNIQUE KEY `uq_financial_institution_switch_key` (`switch_key`),
  208. UNIQUE KEY `uq_financial_institution_name` (`name`),
  209. UNIQUE KEY `uq_financial_institution_account_opening_end_point` (`account_opening_end_point`)
  210. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
  211. /*!40101 SET character_set_client = @saved_cs_client */;
  212.  
  213. --
  214. -- Table structure for table `holiday`
  215. --
  216.  
  217. DROP TABLE IF EXISTS `holiday`;
  218. /*!40101 SET @saved_cs_client = @@character_set_client */;
  219. /*!40101 SET character_set_client = utf8 */;
  220. CREATE TABLE `holiday` (
  221. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  222. `name` varchar(255) DEFAULT NULL,
  223. `start_date` datetime DEFAULT NULL,
  224. `end_date` datetime DEFAULT NULL,
  225. `is_enabled` tinyint(1) DEFAULT '0',
  226. `financial_institution_id` bigint(20) DEFAULT NULL,
  227. PRIMARY KEY (`id`),
  228. KEY `ix_holiday_financialInstitution_15` (`financial_institution_id`),
  229. CONSTRAINT `fk_holiday_financialInstitution_15` FOREIGN KEY (`financial_institution_id`) REFERENCES `financial_institution` (`id`)
  230. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
  231. /*!40101 SET character_set_client = @saved_cs_client */;
  232.  
  233. --
  234. -- Table structure for table `holiday_history`
  235. --
  236.  
  237. DROP TABLE IF EXISTS `holiday_history`;
  238. /*!40101 SET @saved_cs_client = @@character_set_client */;
  239. /*!40101 SET character_set_client = utf8 */;
  240. CREATE TABLE `holiday_history` (
  241. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  242. `event_type` varchar(255) DEFAULT NULL,
  243. `ip_address` varchar(255) DEFAULT NULL,
  244. `user_id` bigint(20) DEFAULT NULL,
  245. `financial_institution_id` bigint(20) DEFAULT NULL,
  246. `holiday_id` bigint(20) DEFAULT NULL,
  247. `event_date` datetime NOT NULL,
  248. PRIMARY KEY (`id`),
  249. KEY `ix_holiday_history_user_16` (`user_id`),
  250. KEY `ix_holiday_history_financialInstitution_17` (`financial_institution_id`),
  251. KEY `ix_holiday_history_holiday_18` (`holiday_id`),
  252. CONSTRAINT `fk_holiday_history_financialInstitution_17` FOREIGN KEY (`financial_institution_id`) REFERENCES `financial_institution` (`id`),
  253. CONSTRAINT `fk_holiday_history_holiday_18` FOREIGN KEY (`holiday_id`) REFERENCES `holiday` (`id`),
  254. CONSTRAINT `fk_holiday_history_user_16` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
  255. ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
  256. /*!40101 SET character_set_client = @saved_cs_client */;
  257.  
  258. --
  259. -- Table structure for table `igroup`
  260. --
  261.  
  262. DROP TABLE IF EXISTS `igroup`;
  263. /*!40101 SET @saved_cs_client = @@character_set_client */;
  264. /*!40101 SET character_set_client = utf8 */;
  265. CREATE TABLE `igroup` (
  266. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  267. `name` varchar(255) DEFAULT NULL,
  268. `description` varchar(255) DEFAULT NULL,
  269. PRIMARY KEY (`id`)
  270. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  271. /*!40101 SET character_set_client = @saved_cs_client */;
  272.  
  273. --
  274. -- Table structure for table `license`
  275. --
  276.  
  277. DROP TABLE IF EXISTS `license`;
  278. /*!40101 SET @saved_cs_client = @@character_set_client */;
  279. /*!40101 SET character_set_client = utf8 */;
  280. CREATE TABLE `license` (
  281. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  282. `license_name` varchar(255) DEFAULT NULL,
  283. `license_value` int(11) DEFAULT NULL,
  284. `financial_institution_id` bigint(20) DEFAULT NULL,
  285. PRIMARY KEY (`id`),
  286. KEY `ix_license_financialInstitution_19` (`financial_institution_id`),
  287. CONSTRAINT `fk_license_financialInstitution_19` FOREIGN KEY (`financial_institution_id`) REFERENCES `financial_institution` (`id`)
  288. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
  289. /*!40101 SET character_set_client = @saved_cs_client */;
  290.  
  291. --
  292. -- Table structure for table `location`
  293. --
  294.  
  295. DROP TABLE IF EXISTS `location`;
  296. /*!40101 SET @saved_cs_client = @@character_set_client */;
  297. /*!40101 SET character_set_client = utf8 */;
  298. CREATE TABLE `location` (
  299. `coordinates` varchar(255) NOT NULL,
  300. `address` varchar(255) DEFAULT NULL,
  301. PRIMARY KEY (`coordinates`)
  302. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  303. /*!40101 SET character_set_client = @saved_cs_client */;
  304.  
  305.  
  306. --
  307. -- Table structure for table `privilege`
  308. --
  309.  
  310. DROP TABLE IF EXISTS `privilege`;
  311. /*!40101 SET @saved_cs_client = @@character_set_client */;
  312. /*!40101 SET character_set_client = utf8 */;
  313. CREATE TABLE `privilege` (
  314. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  315. `name` varchar(255) DEFAULT NULL,
  316. `description` varchar(255) DEFAULT NULL,
  317. PRIMARY KEY (`id`)
  318. ) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=utf8;
  319. /*!40101 SET character_set_client = @saved_cs_client */;
  320.  
  321. --
  322. -- Table structure for table `transaction_request`
  323. --
  324.  
  325. DROP TABLE IF EXISTS `transaction_request`;
  326. /*!40101 SET @saved_cs_client = @@character_set_client */;
  327. /*!40101 SET character_set_client = utf8 */;
  328. CREATE TABLE `transaction_request` (
  329. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  330. `tran_type` varchar(255) DEFAULT NULL,
  331. `location` varchar(255) DEFAULT NULL,
  332. `customer_account` varchar(255) DEFAULT NULL,
  333. `amount` bigint(20) DEFAULT NULL,
  334. `dsa_id` bigint(20) DEFAULT NULL,
  335. `device_id` bigint(20) DEFAULT NULL,
  336. `financial_institution_id` bigint(20) DEFAULT NULL,
  337. `request_date` datetime DEFAULT NULL,
  338. `response_date` datetime DEFAULT NULL,
  339. `response_code` varchar(255) DEFAULT NULL,
  340. `response_message` varchar(255) DEFAULT NULL,
  341. PRIMARY KEY (`id`),
  342. KEY `ix_transaction_request_dsa_20` (`dsa_id`),
  343. KEY `ix_transaction_request_device_21` (`device_id`),
  344. KEY `ix_transaction_request_financialInstitution_22` (`financial_institution_id`),
  345. CONSTRAINT `fk_transaction_request_device_21` FOREIGN KEY (`device_id`) REFERENCES `device` (`id`),
  346. CONSTRAINT `fk_transaction_request_dsa_20` FOREIGN KEY (`dsa_id`) REFERENCES `dsa` (`id`),
  347. CONSTRAINT `fk_transaction_request_financialInstitution_22` FOREIGN KEY (`financial_institution_id`) REFERENCES `financial_institution` (`id`)
  348. ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
  349. /*!40101 SET character_set_client = @saved_cs_client */;
  350.  
  351. --
  352. -- Table structure for table `user`
  353. --
  354.  
  355. DROP TABLE IF EXISTS `user`;
  356. /*!40101 SET @saved_cs_client = @@character_set_client */;
  357. /*!40101 SET character_set_client = utf8 */;
  358. CREATE TABLE `user` (
  359. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  360. `username` varchar(255) DEFAULT NULL,
  361. `password_hash` varchar(255) DEFAULT NULL,
  362. `is_enabled` tinyint(1) DEFAULT '0',
  363. `group_id` bigint(20) DEFAULT NULL,
  364. `branch_id` bigint(20) DEFAULT NULL,
  365. `financial_institution_id` bigint(20) DEFAULT NULL,
  366. PRIMARY KEY (`id`),
  367. UNIQUE KEY `uq_user_username` (`username`),
  368. UNIQUE KEY `uq_user_1` (`username`,`financial_institution_id`),
  369. KEY `ix_user_group_23` (`group_id`),
  370. KEY `ix_user_branch_24` (`branch_id`),
  371. KEY `ix_user_financialInstitution_25` (`financial_institution_id`),
  372. CONSTRAINT `fk_user_branch_24` FOREIGN KEY (`branch_id`) REFERENCES `branch` (`id`),
  373. CONSTRAINT `fk_user_financialInstitution_25` FOREIGN KEY (`financial_institution_id`) REFERENCES `financial_institution` (`id`),
  374. CONSTRAINT `fk_user_group_23` FOREIGN KEY (`group_id`) REFERENCES `igroup` (`id`)
  375. ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
  376. /*!40101 SET character_set_client = @saved_cs_client */;
  377.  
  378. --
  379. -- Table structure for table `user_privilege`
  380. --
  381.  
  382. DROP TABLE IF EXISTS `user_privilege`;
  383. /*!40101 SET @saved_cs_client = @@character_set_client */;
  384. /*!40101 SET character_set_client = utf8 */;
  385. CREATE TABLE `user_privilege` (
  386. `privilege_id` bigint(20) NOT NULL,
  387. `user_id` bigint(20) NOT NULL,
  388. PRIMARY KEY (`privilege_id`,`user_id`),
  389. KEY `fk_user_privilege_user_02` (`user_id`),
  390. CONSTRAINT `fk_user_privilege_privilege_01` FOREIGN KEY (`privilege_id`) REFERENCES `privilege` (`id`),
  391. CONSTRAINT `fk_user_privilege_user_02` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
  392. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  393. /*!40101 SET character_set_client = @saved_cs_client */;
  394.  
  395. --
  396. -- Table structure for table `user_profile`
  397. --
  398.  
  399. DROP TABLE IF EXISTS `user_profile`;
  400. /*!40101 SET @saved_cs_client = @@character_set_client */;
  401. /*!40101 SET character_set_client = utf8 */;
  402. CREATE TABLE `user_profile` (
  403. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  404. `first_name` varchar(255) DEFAULT NULL,
  405. `last_name` varchar(255) DEFAULT NULL,
  406. `middle_name` varchar(255) DEFAULT NULL,
  407. `email` varchar(255) DEFAULT NULL,
  408. `phone_number` varchar(255) DEFAULT NULL,
  409. `staff_number` varchar(255) DEFAULT NULL,
  410. `user_id` bigint(20) NOT NULL,
  411. PRIMARY KEY (`id`),
  412. KEY `ix_user_profile_user_26` (`user_id`),
  413. CONSTRAINT `fk_user_profile_user_26` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
  414. ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
  415. /*!40101 SET character_set_client = @saved_cs_client */;
  416. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  417.  
  418. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  419. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  420. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  421. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  422. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  423. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  424. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  425.  
  426. -- Dump completed on 2015-03-20 15:08:44
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement