数据库字典V1.3.dbo 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <zhiqim-dbo>
  3. <config version="1.2.0" dbType="mysql" folder="../test" initDataWidth="1000">
  4. <![CDATA[
  5. /*
  6. * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙,邂逅框架梦]
  7. *
  8. * 知启蒙数据库映射(zhiqim_orm)在LGPL3.0协议下开源:https://www.zhiqim.com/gitcan/zhiqim/zhiqim_orm.htm
  9. *
  10. * This file is part of [zhiqim_orm].
  11. *
  12. * [zhiqim_orm] is free software: you can redistribute
  13. * it and/or modify it under the terms of the GNU Lesser General Public License
  14. * as published by the Free Software Foundation, either version 3 of the
  15. * License, or (at your option) any later version.
  16. *
  17. * [zhiqim_orm] is distributed in the hope that it will
  18. * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU Lesser General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU Lesser General Public License
  23. * along with [zhiqim_orm].
  24. * If not, see <http://www.gnu.org/licenses/>.
  25. */
  26. ]]>
  27. </config>
  28. <package name="org.zhiqim.orm.test.dbo" type="true" desc="系统配置表">
  29. <table name="T_INTEGER" desc="整型测试表" key="T_ID" type="InnoDB">
  30. <field column="T_ID" type="long" length="" notNull="true" desc="测试编号"/>
  31. <field column="T_BOOLEAN" type="boolean" length="" notNull="true" desc="布尔型"/>
  32. <field column="T_BYTE" type="byte" length="" notNull="true" desc="字节型"/>
  33. <field column="T_SHORT" type="short" length="" notNull="true" desc="短整型"/>
  34. <field column="T_INT" type="int" length="" notNull="true" desc="整型"/>
  35. <field column="T_LONG" type="long" length="" notNull="true" desc="长整型"/>
  36. <data PARAM_UPDATE="0" PARAM_DESC="是否使用管理页登录退出功能" GROUP_ID="zhiqim.manager" PARAM_POS="1" PARAM_VALUE="false" PARAM_KEY="hasManageLogin"/>
  37. <data PARAM_UPDATE="1" PARAM_DESC="是否使用操作员组功能" GROUP_ID="zhiqim.manager" PARAM_POS="2" PARAM_VALUE="false" PARAM_KEY="hasOperatorGroup"/>
  38. </table>
  39. <table name="T_STRING" desc="测试字符串" key="T_ID" type="InnoDB">
  40. <field column="T_ID" type="long" length="" notNull="true" desc="测试编号"/>
  41. <field column="T_CHAR" type="string" length="19,char" notNull="false" desc="定长字符串"/>
  42. <field column="T_VARCHAR" type="string" length="32" notNull="false" desc="变长字符串"/>
  43. <field column="T_STRING2000" type="string" length="2000" notNull="false" desc="变成2000长度"/>
  44. <field column="T_STRING4000" type="string" length="4000" notNull="false" desc="变长4000长度"/>
  45. <field column="T_STRING8000" type="string" length="8000" notNull="false" desc="变长8000长度"/>
  46. <field column="T_STRING16000" type="string" length="16000" notNull="false" desc="变长16000长度"/>
  47. </table>
  48. <table name="T_DATETIME" desc="测试日期格式" key="T_ID" type="InnoDB">
  49. <field column="T_ID" type="long" length="" notNull="true" desc="测试编号"/>
  50. <field column="T_DATETIME" type="datetime" length="" notNull="true" desc="测试日期"/>
  51. <field column="T_DATETIME2" type="datetime" length="" notNull="true" desc="测试日期"/>
  52. </table>
  53. <table name="T_DECIMAL" desc="测试小数格式" key="T_ID" type="InnoDB">
  54. <field column="T_ID" type="long" length="" notNull="true" desc="测试编号"/>
  55. <field column="T_DM5_2" type="decimal" length="5,2" notNull="true" desc="测试5位长度,小数2位"/>
  56. <field column="T_DM10_3" type="decimal" length="10,3" notNull="true" desc="测试10位长度,小数3位"/>
  57. <field column="T_DM15_4" type="decimal" length="15,4" notNull="true" desc="测试15位长度,小数4位"/>
  58. </table>
  59. <table name="T_AUTO" desc="测试自增长字段" key="T_ID" type="InnoDB">
  60. <field column="T_ID" type="long" length="" notNull="true" desc="测试编号"/>
  61. <field column="T_VARCHAR" type="string" length="32" notNull="false" desc="变长字符串"/>
  62. </table>
  63. <table name="MESSAGE" desc="留言表" key="MESSAGE_ID" type="InnoDB">
  64. <field column="MESSAGE_ID" type="long" length="" notNull="true" desc="留言编号"/>
  65. <field column="MESSAGE_NAME" type="string" length="32" notNull="true" desc="访客称呼"/>
  66. <field column="MESSAGE_CONTACTING" type="string" length="50" notNull="false" desc="访客联系方式"/>
  67. <field column="MESSAGE_CONTENT" type="string" length="1000" notNull="true" desc="访客留言内容"/>
  68. <field column="MESSAGE_TIME" type="string" length="19,char" notNull="true" desc="访客留言时间"/>
  69. <field column="MESSAGE_RTIME" type="string" length="19,char" notNull="false" desc="管理员回复时间"/>
  70. <field column="MESSAGE_REPLY" type="string" length="1000" notNull="false" desc="管理员回复内容"/>
  71. </table>
  72. <table name="ADMIN" desc="管理员表" key="ADMIN_NAME" type="InnoDB">
  73. <field column="ADMIN_NAME" type="string" length="32" notNull="true" desc="管理员名称"/>
  74. <field column="ADMIN_PASS" type="string" length="32" notNull="true" desc="管理员密码"/>
  75. <field column="ADMIN_TIME" type="string" length="19,char" notNull="true" desc="管理员时间"/>
  76. <data ADMIN_NAME="admin" ADMIN_PASS="111111"/>
  77. </table>
  78. <table name="ORDER" desc="订单表" key="ORDER_ID" type="InnoDB">
  79. <field column="ORDER_ID" type="long" length="" notNull="true" desc="订单编号"/>
  80. </table>
  81. </package>
  82. <package name="org.zhiqim.orm.test.dboext" type="true" desc="系统配置表">
  83. <view name="T_INTEGER_STRING" type="true" desc="整型和字符串视图" table="T_INTEGER,T_STRING">
  84. <join type="EQUAL" lTable="T_INTEGER" lColumn="T_ID" rTable="T_STRING" rColumn="T_ID"/>
  85. <field column="*" table="T_INTEGER"/>
  86. <field column="T_CHAR" table="T_STRING"/>
  87. <field column="T_VARCHAR" table="T_STRING"/>
  88. </view>
  89. <view name="T_INTEGER_DATETIME" type="true" desc="整型和时间视图" table="T_INTEGER,T_DATETIME">
  90. <join type="EQUAL" lTable="T_INTEGER" lColumn="T_ID" rTable="T_DATETIME" rColumn="T_ID"/>
  91. <field column="*" table="T_INTEGER"/>
  92. <field column="T_DATETIME" table="T_DATETIME"/>
  93. </view>
  94. <view name="T_INTEGER_DECIMAL" type="true" desc="整型和小数视图" table="T_INTEGER,T_DECIMAL">
  95. <join type="EQUAL" lTable="T_INTEGER" lColumn="T_ID" rTable="T_DECIMAL" rColumn="T_ID"/>
  96. <field column="T_ID" table="T_INTEGER"/>
  97. <field column="T_BOOLEAN" table="T_INTEGER"/>
  98. <field column="T_DM5_2" table="T_DECIMAL"/>
  99. <field column="T_DM10_3" table="T_DECIMAL"/>
  100. </view>
  101. <view name="T_INTEGER_STRING_LEFT" type="true" desc="整型和字符串左联视图" table="T_INTEGER,T_STRING">
  102. <join type="LEFT" lTable="T_INTEGER" lColumn="T_ID" rTable="T_STRING" rColumn="T_ID"/>
  103. <field column="*" table="T_INTEGER"/>
  104. <field column="T_CHAR" table="T_STRING"/>
  105. <field column="T_VARCHAR" table="T_STRING"/>
  106. </view>
  107. </package>
  108. </zhiqim-dbo>