database_form_data.rules.php 2.9 KB

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