You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

246 line
7.6 KiB

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