Advertisement
Guest User

Untitled

a guest
May 1st, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.41 KB | None | 0 0
  1. ---
  2. detect_relations: true
  3. options:
  4. collation: latin1_swedish_ci
  5. charset: latin1
  6. type: InnoDB
  7.  
  8. setting:
  9. tableName: settings
  10. columns:
  11. idsettings:
  12. type: integer(4)
  13. primary: true
  14. notnull: true
  15. name:
  16. type: string(255)
  17. unique: true
  18. value:
  19. type: string(255)
  20. options:
  21. charset: latin1
  22. collate: latin1_swedish_ci
  23. type: InnoDB
  24.  
  25. user:
  26. tableName: users
  27. columns:
  28. idusers:
  29. type: integer(4)
  30. primary: true
  31. notnull: true
  32. autoincrement: true
  33. email:
  34. type: string(255)
  35. unique: true
  36. password:
  37. type: string(255)
  38. reg_ip:
  39. type: string(45)
  40. last_ip:
  41. type: string(45)
  42. last_login:
  43. type: timestamp
  44. usergroup:
  45. type: integer(4)
  46. relations:
  47. usergroup:
  48. class: group
  49. local: usergroup
  50. foreign: idgroups
  51. foreignAlias: users
  52. options:
  53. charset: utf8
  54. collate: utf8_unicode_ci
  55. type: InnoDB
  56.  
  57. group:
  58. tableName: groups
  59. columns:
  60. idgroups:
  61. type: integer(4)
  62. primary: true
  63. notnull: true
  64. autoincrement: true
  65. name:
  66. type: string(45)
  67. unique: true
  68. description:
  69. type: string(255)
  70. options:
  71. charset: utf8
  72. collate: utf8_unicode_ci
  73. type: InnoDB
  74.  
  75. userprofile:
  76. tableName: userprofiles
  77. columns:
  78. idprofiles:
  79. type: integer(4)
  80. unique: true
  81. notnull: true
  82. firstname:
  83. type: string(45)
  84. lastname:
  85. type: string(45)
  86. dob:
  87. type: date
  88. phone:
  89. type: string(45)
  90. college:
  91. type: string(45)
  92. city:
  93. type: string(45)
  94. pincode:
  95. type: string(45)
  96. branch:
  97. type: integer(4)
  98. year:
  99. type: enum
  100. values: ['I','II','III','IV']
  101. semester:
  102. type: enum
  103. values: ['NA','I','II']
  104. title:
  105. type: string(45)
  106. node:
  107. type: enum
  108. values: ['Anantapur','Hyderabad','Kakinada']
  109. relations:
  110. idprofile:
  111. class: user
  112. local: idprofiles
  113. foreign: idusers
  114. foreignAlias: userprofiles
  115. onDelete: cascade
  116. onUpdate: cascade
  117. branch:
  118. class: branch
  119. local: branch
  120. foreign: idbranches
  121. foreignAlias: userprofiles
  122. options:
  123. charset: utf8
  124. collate: utf8_unicode_ci
  125. type: InnoDB
  126.  
  127. uploadCategory:
  128. tableName: upload_categories
  129. columns:
  130. idupload_categories:
  131. type: integer(4)
  132. primary: true
  133. notnull: true
  134. autoincrement: true
  135. name:
  136. type: string(45)
  137. unique: true
  138. description:
  139. type: string(45)
  140. options:
  141. charset: latin1
  142. collate: latin1_swedish_ci
  143. type: InnoDB
  144.  
  145. upload:
  146. tableName: uploads
  147. columns:
  148. iduploads:
  149. type: integer(4)
  150. primary: true
  151. notnull: true
  152. autoincrement: true
  153. owner:
  154. type: integer(4)
  155. name:
  156. type: string(45)
  157. description:
  158. type: string(45)
  159. category:
  160. type: integer(4)
  161. branch:
  162. type: integer(4)
  163. year:
  164. type: enum
  165. values: ['I','II','III','IV']
  166. semester:
  167. type: enum
  168. values: ['NA','II','III','IV']
  169. node:
  170. type: enum
  171. values: ['Anantapur','Hyderabad','Kakinada']
  172. type:
  173. type: enum
  174. values: ['foreign','local']
  175. upload_link:
  176. type: string(45)
  177. relations:
  178. owner:
  179. class: user
  180. local: owner
  181. foreign: idusers
  182. foreignAlias: uploads
  183. category:
  184. class: uploadCategory
  185. local: category
  186. foreign: idupload_categories
  187. foreignAlias: uploads
  188. branch:
  189. class: branch
  190. local: branch
  191. foreign: idbranches
  192. foreignAlias: uploads
  193. options:
  194. charset: latin1
  195. collate: latin1_swedish_ci
  196. type: InnoDB
  197.  
  198. branch:
  199. tableName: branches
  200. columns:
  201. idbranches:
  202. type: integer(4)
  203. primary: true
  204. notnull: true
  205. autoincrement: true
  206. name:
  207. type: string(45)
  208. unique: true
  209. designation:
  210. type: string(45)
  211. unique: true
  212. options:
  213. charset: latin1
  214. collate: latin1_swedish_ci
  215. type: InnoDB
  216.  
  217. branch:
  218. tableName: branches
  219. columns:
  220. idbranches:
  221. type: integer(4)
  222. primary: true
  223. notnull: true
  224. autoincrement: true
  225. name:
  226. type: string(45)
  227. unique: true
  228. default: null
  229. designation:
  230. type: string(45)
  231. unique: true
  232. default: null
  233. options:
  234. charset: latin1
  235. type: InnoDB
  236.  
  237. group:
  238. tableName: groups
  239. columns:
  240. idgroups:
  241. type: integer(4)
  242. primary: true
  243. notnull: true
  244. autoincrement: true
  245. name:
  246. type: string(45)
  247. unique: true
  248. default: null
  249. description:
  250. type: string(255)
  251. default: null
  252. options:
  253. charset: utf8
  254. collate: utf8_unicode_ci
  255. type: InnoDB
  256.  
  257. uploadCategory:
  258. tableName: upload_categories
  259. columns:
  260. idupload_categories:
  261. type: integer(4)
  262. primary: true
  263. notnull: true
  264. autoincrement: true
  265. name:
  266. type: string(45)
  267. unique: true
  268. default: null
  269. description:
  270. type: string(45)
  271. default: null
  272. options:
  273. charset: latin1
  274. type: InnoDB
  275.  
  276. upload:
  277. tableName: uploads
  278. columns:
  279. iduploads:
  280. type: integer(4)
  281. primary: true
  282. notnull: true
  283. autoincrement: true
  284. owner:
  285. type: integer(4)
  286. default: null
  287. name:
  288. type: string(45)
  289. default: null
  290. description:
  291. type: string(45)
  292. default: null
  293. category:
  294. type: integer(4)
  295. default: null
  296. branch:
  297. type: integer(4)
  298. default: null
  299. year:
  300. type: string(255)
  301. default: null
  302. semester:
  303. type: string(255)
  304. default: null
  305. node:
  306. type: string(255)
  307. default: null
  308. type:
  309. type: string(255)
  310. default: null
  311. upload_link:
  312. type: string(45)
  313. default: null
  314. relations:
  315. category:
  316. class: uploadCategory
  317. local: category
  318. foreign: idupload_categories
  319. foreignAlias: uploads
  320. indexes:
  321. owner_idx:
  322. fields: [owner]
  323. category_idx:
  324. fields: [category]
  325. branch_idx:
  326. fields: [branch]
  327. options:
  328. charset: latin1
  329. type: InnoDB
  330.  
  331. userprofile:
  332. tableName: userprofiles
  333. columns:
  334. id:
  335. type: integer(4)
  336. primary: true
  337. notnull: true
  338. autoincrement: true
  339. idprofiles:
  340. type: integer(4)
  341. unique: true
  342. notnull: true
  343. firstname:
  344. type: string(45)
  345. default: null
  346. lastname:
  347. type: string(45)
  348. default: null
  349. phone:
  350. type: string(45)
  351. default: null
  352. city:
  353. type: string(125)
  354. default: null
  355. pincode:
  356. type: string(45)
  357. default: null
  358. college:
  359. type: string(45)
  360. default: null
  361. year:
  362. type: string(255)
  363. default: null
  364. semester:
  365. type: string(255)
  366. default: null
  367. rno:
  368. type: string(15)
  369. default: null
  370. branch:
  371. type: integer(4)
  372. default: null
  373. title:
  374. type: string(45)
  375. default: null
  376. node:
  377. type: string(255)
  378. default: null
  379. usergroup:
  380. type: integer(4)
  381. default: 1
  382. relations:
  383. idprofile:
  384. class: user
  385. local: idprofiles
  386. foreign: idusers
  387. foreignAlias: userprofiles
  388. onDelete: cascade
  389. onUpdate: cascade
  390. usergroup:
  391. class: group
  392. local: usergroup
  393. foreign: idgroups
  394. foreignAlias: userprofiles
  395. onDelete: set null
  396. onUpdate: cascade
  397. branch:
  398. class: branch
  399. local: branch
  400. foreign: idbranches
  401. foreignAlias: userprofiles
  402. onDelete: set null
  403. onUpdate: cascade
  404. options:
  405. charset: utf8
  406. collate: utf8_unicode_ci
  407. type: InnoDB
  408.  
  409. user:
  410. tableName: users
  411. columns:
  412. idusers:
  413. type: integer(4)
  414. primary: true
  415. notnull: true
  416. autoincrement: true
  417. email:
  418. type: string(255)
  419. unique: true
  420. default: null
  421. password:
  422. type: string(255)
  423. default: null
  424. reg_ip:
  425. type: string(45)
  426. default: null
  427. last_ip:
  428. type: string(45)
  429. default: null
  430. created:
  431. type: timestamp
  432. notnull: true
  433. last_login:
  434. type: timestamp
  435. default: null
  436. options:
  437. charset: utf8
  438. collate: utf8_unicode_ci
  439. type: InnoDB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement