card.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'card',
  6. # 显示给用户看的名称
  7. 'lang' => '优惠券码',
  8. 'order' => 100,
  9. # 数据结构
  10. 'struct' => array
  11. (
  12. 'id' => array
  13. (
  14. 'type' => 'int-11',
  15. 'name' => 'ID',
  16. 'default' => '',
  17. 'desc' => '',
  18. 'match' => 'is_numeric',
  19. 'search' => 'order',
  20. //'list' => true,
  21. ),
  22. 'project_id' => array
  23. (
  24. 'type' => 'int-11',
  25. 'name' => '项目ID',
  26. 'default' => '',
  27. 'desc' => '请输入项目',
  28. 'match' => 'is_numeric',
  29. 'list' => true,
  30. ),
  31. 'key' => array
  32. (
  33. 'type' => 'varchar-20',
  34. 'name' => '活动key-通过key值搜索数据',
  35. 'default' => '',
  36. 'desc' => '活动key-通过key值搜索数据',
  37. 'match' => 'is_string',
  38. 'update' => 'text',
  39. 'list' => true,
  40. 'edit' => true,
  41. ),
  42. 'name' => array
  43. (
  44. 'type' => 'varchar-120',
  45. 'name' => '标题',
  46. 'default' => '',
  47. 'desc' => '标题',
  48. 'match' => 'is_string',
  49. 'update' => 'text',
  50. 'list' => true,
  51. ),
  52. 'card_id' => array
  53. (
  54. 'type' => 'varchar-120',
  55. 'name' => '活动id',
  56. 'default' => '',
  57. 'desc' => '活动id',
  58. 'match' => 'is_string',
  59. 'update' => 'text',
  60. //'list' => true,
  61. ),
  62. 'state' => array
  63. (
  64. 'type' => 'tinyint-1',
  65. 'name' => '状态',
  66. 'default' => '1',
  67. 'desc' => '请选择状态',
  68. 'match' => 'is_numeric',
  69. ),
  70. 'cdate' => array
  71. (
  72. 'type' => 'int-11',
  73. 'name' => '更新时间',
  74. 'match' => array('is_numeric', time()),
  75. 'desc' => '',
  76. 'default' => '',
  77. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  78. ),
  79. ),
  80. 'top' => Dever::config('base', 'youzan')->top,
  81. 'manage' => array
  82. (
  83. //'delete' => false,
  84. //'insert' => false,
  85. //'edit' => false,
  86. ),
  87. );