table.rules.config.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <?php
  2. return array(
  3. 'database' => 'qii',
  4. 'tableName' => 'database_table_rules',
  5. 'rules' => array(
  6. 'length' => array(
  7. 'database' => '20',
  8. 'table' => '20',
  9. 'rules' => '0',
  10. 'add_time' => '10',
  11. 'update_time' => '10'
  12. ),
  13. 'type' => array(
  14. 'database' => 'varchar',
  15. 'table' => 'varchar',
  16. 'rules' => 'text',
  17. 'add_time' => 'int',
  18. 'update_time' => 'int'
  19. ),
  20. 'fields' => array(
  21. 0 => 'database',
  22. 1 => 'table',
  23. 2 => 'rules',
  24. 3 => 'add_time',
  25. 4 => 'update_time'
  26. ),
  27. 'pri' => array(
  28. 'database' => '1',
  29. 'table' => '1'
  30. ),
  31. 'alias' => array(
  32. 'database' => '数据库名',
  33. 'table' => '数据表',
  34. 'rules' => '规则',
  35. 'add_time' => '添加时间',
  36. 'update_time' => '更新时间'
  37. ),
  38. 'front' => array(
  39. 'database' => '1',
  40. 'table' => '1',
  41. 'rules' => '1',
  42. 'add_time' => '1',
  43. 'update_time' => '1'
  44. ),
  45. 'end' => array(
  46. 'database' => '1',
  47. 'table' => '1',
  48. 'rules' => '1',
  49. 'add_time' => '1',
  50. 'update_time' => '1'
  51. ),
  52. 'default' => array(
  53. 'database' => '',
  54. 'table' => '',
  55. 'rules' => '',
  56. 'add_time' => '',
  57. 'update_time' => ''
  58. ),
  59. 'validate' => array(
  60. 'database' => array(
  61. 0 => 'required',
  62. 1 => 'string',
  63. ),
  64. 'table' => array(
  65. 0 => 'required',
  66. 1 => 'string'
  67. ),
  68. 'rules' => array(
  69. 0 => 'required'
  70. )
  71. ),
  72. 'update' => array(
  73. 'database' => '1',
  74. 'table' => '1',
  75. 'rules' => '1'
  76. ),
  77. 'save' => array(
  78. 'database' => '1',
  79. 'table' => '1',
  80. 'rules' => '1'
  81. ),
  82. 'remove' => array(
  83. 'database' => '1',
  84. 'table' => '1'
  85. ),
  86. 'null' => array(
  87. 'database' => 'no',
  88. 'table' => 'no',
  89. 'rules' => 'no',
  90. 'add_time' => 'yes',
  91. 'update_time' => 'yes'
  92. )
  93. ),
  94. 'add_time' => '1442888805',
  95. 'update_time' => '1451032338',
  96. 'sql' => 'CREATE TABLE IF NOT EXISTS `database_table_rules` (
  97. `database` varchar(50) NOT NULL,
  98. `table` varchar(50) NOT NULL,
  99. `rules` text NOT NULL,
  100. `add_time` int(10) DEFAULT NULL,
  101. `update_time` int(10) DEFAULT NULL,
  102. PRIMARY KEY (`database`,`table`)
  103. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;'
  104. );