Advertisement
Guest User

Untitled

a guest
Aug 1st, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.54 KB | None | 0 0
  1. Account:
  2. columns:
  3. id:
  4. type: integer
  5. primary: true
  6. autoincrement: true
  7. unsigned: true
  8. domain:
  9. type: string(255)
  10. fixed: false
  11. primary: false
  12. notnull: true
  13. autoincrement: false
  14. username:
  15. type: string(100)
  16. fixed: false
  17. primary: false
  18. notnull: true
  19. autoincrement: false
  20. password:
  21. type: string(100)
  22. fixed: false
  23. primary: false
  24. notnull: true
  25. autoincrement: false
  26. parent:
  27. type: integer
  28. unsigned: true
  29. default: '0'
  30. notnull: true
  31. ssl_cert:
  32. type: string(3000)
  33. ssl_key:
  34. type: string(3000)
  35. plan_id:
  36. type: integer
  37. unsigned: true
  38. ipaddress_id:
  39. type: integer
  40. unsigned: true
  41. accounttype_id:
  42. type: integer
  43. unsigned: true
  44. user_id:
  45. type: integer
  46. unsigned: true
  47. server_id:
  48. type: integer
  49. unsigned: true
  50. relations:
  51. Subaccounts:
  52. class: Account
  53. local: parent
  54. foreign: child
  55. refClass: SubaccountReference
  56. equal: true
  57. Server:
  58. local: server_id
  59. foreign: id
  60.  
  61. SubaccountReference:
  62. columns:
  63. parent:
  64. type: integer
  65. unsigned: true
  66. primary: true
  67. child:
  68. type: integer
  69. unsigned: true
  70. primary: true
  71.  
  72. Configuration:
  73. columns:
  74. id:
  75. type: integer
  76. primary: true
  77. autoincrement: true
  78. unsigned: true
  79. field:
  80. type: string(100)
  81. value:
  82. type: string(255)
  83.  
  84. Ipaddress:
  85. columns:
  86. id:
  87. type: integer
  88. primary: true
  89. autoincrement: true
  90. unsigned: true
  91. ipblock_id:
  92. type: integer
  93. unsigned: true
  94. server_id:
  95. type: integer
  96. unsigned: true
  97. account_id:
  98. type: integer
  99. unsigned: true
  100. ip:
  101. type: string(128)
  102. rdns:
  103. type: string(255)
  104. reserved:
  105. type: integer(1)
  106. unsigned: 1
  107. default: '0'
  108. notnull: true
  109.  
  110. Ipblock:
  111. columns:
  112. id:
  113. type: integer
  114. primary: true
  115. autoincrement: true
  116. unsigned: true
  117. name:
  118. type: string(100)
  119. gateway:
  120. type: string(100)
  121. ns1:
  122. type: string(100)
  123. ns2:
  124. type: string(100)
  125. cidr:
  126. type: integer(4)
  127. unsigned: 1
  128. notnull: true
  129. iptype:
  130. type: integer(1)
  131. unsigned: 1
  132. default: '4'
  133. notnull: true
  134. internal:
  135. type: integer(1)
  136. unsigned: 1
  137. default: '0'
  138. relations:
  139. Ipaddresses:
  140. type: many
  141. class: Ipaddress
  142. local: id
  143. foreign: ipblock_id
  144.  
  145. Plan:
  146. columns:
  147. id:
  148. type: integer
  149. primary: true
  150. autoincrement: true
  151. unsigned: true
  152. name:
  153. type: string(255)
  154. ram:
  155. type: string(100)
  156. disk:
  157. type: string(100)
  158. bandwidth:
  159. type: string(100)
  160. type:
  161. type: string(30)
  162. primary: false
  163. default: openvz
  164. notnull: true
  165. relations:
  166. Accounts:
  167. type: many
  168. class: Account
  169. local: id
  170. foreign: plan_id
  171.  
  172. Server:
  173. columns:
  174. id:
  175. type: integer
  176. primary: true
  177. autoincrement: true
  178. unsigned: true
  179. name:
  180. type: string(100)
  181. ip:
  182. type: string(128)
  183. int_ip:
  184. type: string(128)
  185. hostname:
  186. type: string(100)
  187. username:
  188. type: string(100)
  189. password:
  190. type: string(100)
  191. port:
  192. type: integer(4)
  193. unsigned: 1
  194. default: '8888'
  195. notnull: true
  196. location:
  197. type: string(100)
  198. status:
  199. type: integer(1)
  200. unsigned: 1
  201. default: '1'
  202. notnull: true
  203. arch:
  204. type: string(10)
  205. default: i386
  206. notnull: true
  207. servertype_id:
  208. type: integer
  209. unsigned: true
  210. relations:
  211. Ipblocks:
  212. foreignAlias: Servers
  213. class: Ipblock
  214. refClass: ServerBlock
  215. local: server_id
  216. foreign: ipblock_id
  217. Accounts:
  218. type: many
  219. class: Account
  220. local: id
  221. foreign: server_id
  222.  
  223. ServerBlock:
  224. columns:
  225. id:
  226. type: integer
  227. primary: true
  228. autoincrement: true
  229. unsigned: true
  230. server_id:
  231. type: integer
  232. primary: true
  233. unsigned: true
  234. ipblock_id:
  235. type: integer
  236. primary: true
  237. unsigned: true
  238. relations:
  239. Server:
  240. foreignAlias: ServerBlocks
  241. Ipblock:
  242. foreignAlias: ServerBlocks
  243. onDelete: CASCADE
  244.  
  245. Servertype:
  246. columns:
  247. id:
  248. type: integer
  249. primary: true
  250. autoincrement: true
  251. unsigned: true
  252. name:
  253. type: string(100)
  254. code:
  255. type: string(25)
  256. relations:
  257. Servers:
  258. type: many
  259. class: Server
  260. local: id
  261. foreign: servertype_id
  262. Accounts:
  263. type: many
  264. class: Account
  265. local: id
  266. foreign: accounttype_id
  267.  
  268. User:
  269. actAs: [Timestampable]
  270. columns:
  271. id:
  272. type: integer
  273. primary: true
  274. autoincrement: true
  275. unsigned: true
  276. is_active:
  277. type: integer(1)
  278. unsigned: 1
  279. default: '1'
  280. notnull: false
  281. is_admin:
  282. type: integer(1)
  283. unsigned: 1
  284. default: '0'
  285. notnull: false
  286. username:
  287. type: string(50)
  288. password:
  289. type: string(50)
  290. email:
  291. type: string(255)
  292. is_api:
  293. type: integer(1)
  294. unsigned: 1
  295. default: '0'
  296. notnull: true
  297. relations:
  298. Accounts:
  299. type: many
  300. class: Account
  301. local: id
  302. foreign: user_id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement