database_form_setting.rules.config.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <?php
  2. return array(
  3. 'database' => 'test',
  4. 'tableName' => 'database_form_setting',
  5. 'rules' =>
  6. array(
  7. 'end' =>
  8. array(
  9. 'id' => '1',
  10. 'uid' => '1',
  11. 'uniqid' => '1',
  12. 'mask' => '1',
  13. 'form' => '1',
  14. 'form_serialize' => '1',
  15. 'status' => '1',
  16. 'add_time' => '1',
  17. 'update_time' => '1',
  18. ),
  19. 'front' =>
  20. array(
  21. 'id' => '1',
  22. 'uid' => '1',
  23. 'uniqid' => '1',
  24. 'mask' => '1',
  25. 'form' => '1',
  26. 'form_serialize' => '1',
  27. 'status' => '1',
  28. 'add_time' => '1',
  29. 'update_time' => '1',
  30. ),
  31. 'alias' =>
  32. array(
  33. 'id' => 'id',
  34. 'uid' => 'uid',
  35. 'uniqid' => 'uniqid',
  36. 'mask' => '',
  37. 'form' => 'form',
  38. 'form_serialize' => 'form_serialize',
  39. 'status' => 'status',
  40. 'add_time' => 'add_time',
  41. 'update_time' => 'update_time',
  42. ),
  43. 'fields' =>
  44. array(
  45. 0 => 'id',
  46. 1 => 'uid',
  47. 2 => 'uniqid',
  48. 3 => 'mask',
  49. 4 => 'form',
  50. 5 => 'form_serialize',
  51. 6 => 'status',
  52. 7 => 'add_time',
  53. 8 => 'update_time',
  54. ),
  55. 'length' =>
  56. array(
  57. 'id' => '11',
  58. 'uid' => '11',
  59. 'uniqid' => '41',
  60. 'mask' => '32',
  61. 'form' => '0',
  62. 'form_serialize' => '0',
  63. 'status' => '1',
  64. 'add_time' => '11',
  65. 'update_time' => '11',
  66. ),
  67. 'type' =>
  68. array(
  69. 'id' => 'int',
  70. 'uid' => 'int',
  71. 'uniqid' => 'char',
  72. 'mask' => 'char',
  73. 'form' => 'text',
  74. 'form_serialize' => 'text',
  75. 'status' => 'tinyint',
  76. 'add_time' => 'int',
  77. 'update_time' => 'int',
  78. ),
  79. 'null' =>
  80. array(
  81. 'id' => 'no',
  82. 'uid' => 'yes',
  83. 'uniqid' => 'no',
  84. 'mask' => 'no',
  85. 'form' => 'yes',
  86. 'form_serialize' => 'yes',
  87. 'status' => 'no',
  88. 'add_time' => 'yes',
  89. 'update_time' => 'yes',
  90. ),
  91. 'pri' =>
  92. array(
  93. 'id' => '1',
  94. ),
  95. 'uni' =>
  96. array(
  97. 'uniqid' => '1',
  98. 'mask' => '1',
  99. ),
  100. 'validate' =>
  101. array(
  102. 'uniqid' =>
  103. array(
  104. 0 => 'required',
  105. ),
  106. 'form' =>
  107. array(
  108. 0 => 'required',
  109. ),
  110. 'form_serialize' =>
  111. array(
  112. 0 => 'required',
  113. ),
  114. ),
  115. 'default' =>
  116. array(
  117. 'id' => '',
  118. 'uid' => '',
  119. 'uniqid' => '',
  120. 'mask' => '',
  121. 'form' => '',
  122. 'form_serialize' => '',
  123. 'status' => '1',
  124. 'add_time' => '',
  125. 'update_time' => '',
  126. ),
  127. 'update' =>
  128. array(
  129. 'id' => '1',
  130. 'uniqid' => '1',
  131. 'mask' => '1',
  132. 'form' => '1',
  133. 'form_serialize' => '1',
  134. ),
  135. 'remove' =>
  136. array(
  137. 'id' => '1',
  138. 'uniqid' => '1',
  139. ),
  140. 'save' =>
  141. array(
  142. 'uniqid' => '1',
  143. 'mask' => '1',
  144. 'form' => '1',
  145. 'form_serialize' => '1',
  146. ),
  147. ),
  148. 'table' => 'database_form_setting',
  149. 'add_time' => '1454470879',
  150. 'update_time' => '1454471891',
  151. 'sql' => 'CREATE TABLE IF NOT EXISTS `database_form_setting` (
  152. `id` int(11) NOT NULL AUTO_INCREMENT,
  153. `uid` int(11) DEFAULT NULL,
  154. `uniqid` char(41) NOT NULL,
  155. `mask` char(32) NOT NULL,
  156. `form` text,
  157. `form_serialize` text,
  158. `status` tinyint(1) NOT NULL DEFAULT \\\'1\\\',
  159. `add_time` int(11) DEFAULT NULL,
  160. `update_time` int(11) DEFAULT NULL,
  161. PRIMARY KEY (`id`),
  162. UNIQUE KEY `uniqid_UNIQUE` (`uniqid`),
  163. UNIQUE KEY `mask_UNIQUE` (`mask`)
  164. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;',
  165. );