Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

275 linhas
8.6 KiB

  1. -- Core Elements to install WNFramework
  2. -- To be called from install.py
  3. --
  4. -- Table structure for table `tabDocField`
  5. --
  6. DROP TABLE IF EXISTS `tabDocField`;
  7. CREATE TABLE `tabDocField` (
  8. `name` varchar(120) NOT NULL,
  9. `creation` datetime DEFAULT NULL,
  10. `modified` datetime DEFAULT NULL,
  11. `modified_by` varchar(40) DEFAULT NULL,
  12. `owner` varchar(40) DEFAULT NULL,
  13. `docstatus` int(1) DEFAULT '0',
  14. `parent` varchar(120) DEFAULT NULL,
  15. `parentfield` varchar(120) DEFAULT NULL,
  16. `parenttype` varchar(120) DEFAULT NULL,
  17. `idx` int(8) DEFAULT NULL,
  18. `fieldname` varchar(180) DEFAULT NULL,
  19. `label` varchar(180) DEFAULT NULL,
  20. `oldfieldname` varchar(180) DEFAULT NULL,
  21. `fieldtype` varchar(180) DEFAULT NULL,
  22. `oldfieldtype` varchar(180) DEFAULT NULL,
  23. `options` text,
  24. `search_index` int(1) DEFAULT NULL,
  25. `hidden` int(1) DEFAULT NULL,
  26. `print_hide` int(1) DEFAULT NULL,
  27. `report_hide` int(1) DEFAULT NULL,
  28. `reqd` int(1) DEFAULT NULL,
  29. `no_copy` int(1) DEFAULT NULL,
  30. `allow_on_submit` int(1) DEFAULT NULL,
  31. `trigger` varchar(180) DEFAULT NULL,
  32. `depends_on` varchar(180) DEFAULT NULL,
  33. `permlevel` int(11) DEFAULT '0',
  34. `ignore_restrictions` int(1) DEFAULT NULL,
  35. `width` varchar(180) DEFAULT NULL,
  36. `print_width` varchar(180) DEFAULT NULL,
  37. `default` text,
  38. `description` text,
  39. `in_filter` int(1) DEFAULT NULL,
  40. `in_list_view` int(1) DEFAULT NULL,
  41. `no_column` int(1) DEFAULT NULL,
  42. `read_only` int(1) DEFAULT NULL,
  43. PRIMARY KEY (`name`),
  44. KEY `parent` (`parent`),
  45. KEY `label` (`label`),
  46. KEY `fieldtype` (`fieldtype`),
  47. KEY `fieldname` (`fieldname`)
  48. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  49. --
  50. -- Table structure for table `tabDocPerm`
  51. --
  52. DROP TABLE IF EXISTS `tabDocPerm`;
  53. /*!40101 SET @saved_cs_client = @@character_set_client */;
  54. /*!40101 SET character_set_client = utf8 */;
  55. CREATE TABLE `tabDocPerm` (
  56. `name` varchar(120) NOT NULL,
  57. `creation` datetime DEFAULT NULL,
  58. `modified` datetime DEFAULT NULL,
  59. `modified_by` varchar(40) DEFAULT NULL,
  60. `owner` varchar(40) DEFAULT NULL,
  61. `docstatus` int(1) DEFAULT '0',
  62. `parent` varchar(120) DEFAULT NULL,
  63. `parentfield` varchar(120) DEFAULT NULL,
  64. `parenttype` varchar(120) DEFAULT NULL,
  65. `idx` int(8) DEFAULT NULL,
  66. `permlevel` int(11) DEFAULT '0',
  67. `role` varchar(180) DEFAULT NULL,
  68. `match` varchar(180) DEFAULT NULL,
  69. `read` int(1) DEFAULT NULL,
  70. `write` int(1) DEFAULT NULL,
  71. `create` int(1) DEFAULT NULL,
  72. `submit` int(1) DEFAULT NULL,
  73. `cancel` int(1) DEFAULT NULL,
  74. `amend` int(1) DEFAULT NULL,
  75. `report` int(1) DEFAULT NULL,
  76. `export` int(1) DEFAULT NULL,
  77. `import` int(1) DEFAULT NULL,
  78. `print` int(1) DEFAULT NULL,
  79. `email` int(1) DEFAULT NULL,
  80. `restrict` int(1) DEFAULT NULL,
  81. PRIMARY KEY (`name`),
  82. KEY `parent` (`parent`)
  83. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  84. /*!40101 SET character_set_client = @saved_cs_client */;
  85. --
  86. -- Table structure for table `tabDocType`
  87. --
  88. DROP TABLE IF EXISTS `tabDocType`;
  89. /*!40101 SET @saved_cs_client = @@character_set_client */;
  90. /*!40101 SET character_set_client = utf8 */;
  91. CREATE TABLE `tabDocType` (
  92. `name` varchar(180) NOT NULL DEFAULT '',
  93. `creation` datetime DEFAULT NULL,
  94. `modified` datetime DEFAULT NULL,
  95. `modified_by` varchar(40) DEFAULT NULL,
  96. `owner` varchar(180) DEFAULT NULL,
  97. `docstatus` int(1) DEFAULT '0',
  98. `parent` varchar(120) DEFAULT NULL,
  99. `parentfield` varchar(120) DEFAULT NULL,
  100. `parenttype` varchar(120) DEFAULT NULL,
  101. `idx` int(8) DEFAULT NULL,
  102. `search_fields` varchar(180) DEFAULT NULL,
  103. `issingle` int(1) DEFAULT NULL,
  104. `istable` int(1) DEFAULT NULL,
  105. `version` int(11) DEFAULT NULL,
  106. `module` varchar(180) DEFAULT NULL,
  107. `plugin` varchar(180) DEFAULT NULL,
  108. `autoname` varchar(180) DEFAULT NULL,
  109. `name_case` varchar(180) DEFAULT NULL,
  110. `description` text,
  111. `colour` varchar(180) DEFAULT NULL,
  112. `read_only` int(1) DEFAULT NULL,
  113. `in_create` int(1) DEFAULT NULL,
  114. `show_in_menu` int(1) DEFAULT NULL,
  115. `menu_index` int(11) DEFAULT NULL,
  116. `parent_node` varchar(180) DEFAULT NULL,
  117. `smallicon` varchar(180) DEFAULT NULL,
  118. `allow_print` int(1) DEFAULT NULL,
  119. `allow_email` int(1) DEFAULT NULL,
  120. `allow_copy` int(1) DEFAULT NULL,
  121. `allow_rename` int(1) DEFAULT NULL,
  122. `allow_import` int(1) DEFAULT NULL,
  123. `hide_toolbar` int(1) DEFAULT NULL,
  124. `hide_heading` int(1) DEFAULT NULL,
  125. `allow_attach` int(1) DEFAULT NULL,
  126. `use_template` int(1) DEFAULT NULL,
  127. `max_attachments` int(11) DEFAULT NULL,
  128. `section_style` varchar(180) DEFAULT NULL,
  129. `client_script` mediumtext,
  130. `client_script_core` mediumtext,
  131. `server_code` mediumtext,
  132. `server_code_core` mediumtext,
  133. `server_code_compiled` mediumtext,
  134. `client_string` mediumtext,
  135. `server_code_error` varchar(180) DEFAULT NULL,
  136. `print_outline` varchar(180) DEFAULT NULL,
  137. `dt_template` mediumtext,
  138. `is_transaction_doc` int(1) DEFAULT NULL,
  139. `change_log` mediumtext,
  140. `read_only_onload` int(1) DEFAULT NULL,
  141. `allow_trash` int(1) DEFAULT NULL,
  142. `in_dialog` int(1) DEFAULT NULL,
  143. `document_type` varchar(180) DEFAULT NULL,
  144. `icon` varchar(180) DEFAULT NULL,
  145. `tag_fields` varchar(180) DEFAULT NULL,
  146. `subject` varchar(180) DEFAULT NULL,
  147. `_last_update` varchar(32) DEFAULT NULL,
  148. `default_print_format` varchar(180) DEFAULT NULL,
  149. `is_submittable` int(1) DEFAULT NULL,
  150. `_user_tags` varchar(180) DEFAULT NULL,
  151. `custom` int(1) DEFAULT NULL,
  152. PRIMARY KEY (`name`),
  153. KEY `parent` (`parent`)
  154. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  155. /*!40101 SET character_set_client = @saved_cs_client */;
  156. --
  157. -- Table structure for table `tabSeries`
  158. --
  159. DROP TABLE IF EXISTS `tabSeries`;
  160. /*!40101 SET @saved_cs_client = @@character_set_client */;
  161. /*!40101 SET character_set_client = utf8 */;
  162. CREATE TABLE `tabSeries` (
  163. `name` varchar(100) DEFAULT NULL,
  164. `current` int(10) DEFAULT NULL
  165. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  166. /*!40101 SET character_set_client = @saved_cs_client */;
  167. --
  168. -- Table structure for table `tabSessions`
  169. --
  170. DROP TABLE IF EXISTS `tabSessions`;
  171. /*!40101 SET @saved_cs_client = @@character_set_client */;
  172. /*!40101 SET character_set_client = utf8 */;
  173. CREATE TABLE `tabSessions` (
  174. `user` varchar(40) DEFAULT NULL,
  175. `sid` varchar(120) DEFAULT NULL,
  176. `sessiondata` longtext,
  177. `ipaddress` varchar(16) DEFAULT NULL,
  178. `lastupdate` datetime DEFAULT NULL,
  179. `status` varchar(20) DEFAULT NULL,
  180. KEY `sid` (`sid`)
  181. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  182. /*!40101 SET character_set_client = @saved_cs_client */;
  183. --
  184. -- Table structure for table `tabSingles`
  185. --
  186. DROP TABLE IF EXISTS `tabSingles`;
  187. /*!40101 SET @saved_cs_client = @@character_set_client */;
  188. /*!40101 SET character_set_client = utf8 */;
  189. CREATE TABLE `tabSingles` (
  190. `doctype` varchar(40) DEFAULT NULL,
  191. `field` varchar(40) DEFAULT NULL,
  192. `value` text,
  193. KEY `singles_doctype_field_index` (`doctype`, `field`)
  194. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  195. --
  196. -- Table structure for table `__Auth`
  197. --
  198. DROP TABLE IF EXISTS `__Auth`;
  199. /*!40101 SET @saved_cs_client = @@character_set_client */;
  200. /*!40101 SET character_set_client = utf8 */;
  201. CREATE TABLE `__Auth` (
  202. `user` VARCHAR(180) NOT NULL PRIMARY KEY,
  203. `password` VARCHAR(180) NOT NULL,
  204. KEY `user` (`user`)
  205. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  206. --
  207. -- Table structure for table `tabFile Data`
  208. --
  209. DROP TABLE IF EXISTS `tabFile Data`;
  210. CREATE TABLE `tabFile Data` (
  211. `name` varchar(120) NOT NULL,
  212. `creation` datetime DEFAULT NULL,
  213. `modified` datetime DEFAULT NULL,
  214. `modified_by` varchar(40) DEFAULT NULL,
  215. `owner` varchar(40) DEFAULT NULL,
  216. `docstatus` int(1) DEFAULT '0',
  217. `parent` varchar(120) DEFAULT NULL,
  218. `parentfield` varchar(120) DEFAULT NULL,
  219. `parenttype` varchar(120) DEFAULT NULL,
  220. `idx` int(8) DEFAULT NULL,
  221. `file_name` varchar(180) DEFAULT NULL,
  222. `file_url` varchar(180) DEFAULT NULL,
  223. `module` varchar(180) DEFAULT NULL,
  224. `attached_to_name` varchar(180) DEFAULT NULL,
  225. `file_size` int(11) DEFAULT NULL,
  226. `attached_to_doctype` varchar(180) DEFAULT NULL,
  227. PRIMARY KEY (`name`),
  228. KEY `parent` (`parent`),
  229. KEY `attached_to_name` (`attached_to_name`),
  230. KEY `attached_to_doctype` (`attached_to_doctype`)
  231. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  232. --
  233. -- Table structure for table `tabDefaultValue`
  234. --
  235. DROP TABLE IF EXISTS `tabDefaultValue`;
  236. CREATE TABLE `tabDefaultValue` (
  237. `name` varchar(120) NOT NULL,
  238. `creation` datetime DEFAULT NULL,
  239. `modified` datetime DEFAULT NULL,
  240. `modified_by` varchar(40) DEFAULT NULL,
  241. `owner` varchar(40) DEFAULT NULL,
  242. `docstatus` int(1) DEFAULT '0',
  243. `parent` varchar(120) DEFAULT NULL,
  244. `parentfield` varchar(120) DEFAULT NULL,
  245. `parenttype` varchar(120) DEFAULT NULL,
  246. `idx` int(8) DEFAULT NULL,
  247. `defvalue` text,
  248. `defkey` varchar(180) DEFAULT NULL,
  249. PRIMARY KEY (`name`),
  250. KEY `parent` (`parent`),
  251. KEY `defaultvalue_parent_defkey_index` (`parent`,`defkey`)
  252. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;