config.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?php
  2. /**
  3. * 配置表
  4. */
  5. return array
  6. (
  7. # 表名
  8. 'name' => 'config',
  9. # 显示给用户看的名称
  10. 'lang' => '阿里云配置',
  11. 'order' => 1,
  12. # 数据结构
  13. 'struct' => array
  14. (
  15. 'id' => array
  16. (
  17. 'type' => 'int-11',
  18. 'name' => '配置ID',
  19. 'default' => '',
  20. 'desc' => '',
  21. 'match' => 'is_numeric',
  22. 'search' => 'order',
  23. 'list' => true,
  24. ),
  25. 'name' => array
  26. (
  27. 'type' => 'varchar-24',
  28. 'name' => '配置名',
  29. 'default' => '',
  30. 'desc' => '请输入配置名',
  31. 'match' => 'is_string',
  32. 'update' => 'text',
  33. 'search' => 'fulltext',
  34. 'list' => true,
  35. ),
  36. 'appkey' => array
  37. (
  38. 'type' => 'varchar-80',
  39. 'name' => 'appkey',
  40. 'default' => '',
  41. 'desc' => 'appkey',
  42. 'match' => 'is_string',
  43. 'update' => 'text',
  44. 'search' => 'fulltext',
  45. 'list' => true,
  46. ),
  47. 'appsecret' => array
  48. (
  49. 'type' => 'varchar-200',
  50. 'name' => 'appsecret',
  51. 'default' => '',
  52. 'desc' => 'appsecret',
  53. 'match' => 'is_string',
  54. 'update' => 'text',
  55. 'search' => 'fulltext',
  56. 'list' => true,
  57. ),
  58. 'state' => array
  59. (
  60. 'type' => 'tinyint-1',
  61. 'name' => '状态',
  62. 'default' => '1',
  63. 'desc' => '请选择状态',
  64. 'match' => 'is_numeric',
  65. ),
  66. 'cdate' => array
  67. (
  68. 'type' => 'int-11',
  69. 'name' => '录入时间',
  70. 'match' => array('is_numeric', time()),
  71. 'desc' => '',
  72. # 只有insert时才生效
  73. 'insert' => true,
  74. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  75. ),
  76. ),
  77. 'manage' => array
  78. (
  79. ),
  80. );