ticket.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. /**
  3. * ticket
  4. */
  5. return array
  6. (
  7. # 表名
  8. 'name' => 'ticket',
  9. # 显示给用户看的名称
  10. 'lang' => 'ticket数据表',
  11. 'menu' => false,
  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. 'project_id' => array
  26. (
  27. 'type' => 'int-11',
  28. 'name' => '项目',
  29. 'default' => '',
  30. 'desc' => '请输入项目',
  31. 'match' => 'is_numeric',
  32. //'search' => 'order,fulltext',
  33. 'update' => 'text',
  34. 'list' => '{project_id} > 0 ? Dever::load("main/project-one#name", {project_id}) : "未知"',
  35. ),
  36. 'value' => array
  37. (
  38. 'type' => 'varchar-255',
  39. 'name' => 'ticket标识',
  40. 'default' => '',
  41. 'desc' => 'ticket标识',
  42. 'match' => 'is_string',
  43. 'update' => 'text',
  44. 'list' => true,
  45. 'modal' => '查看',
  46. ),
  47. 'expires' => array
  48. (
  49. 'type' => 'int-11',
  50. 'name' => '过期时间',
  51. 'default' => '',
  52. 'desc' => '过期时间',
  53. 'match' => 'is_numeric',
  54. 'update' => 'text',
  55. 'list' => true,
  56. ),
  57. 'mdate' => array
  58. (
  59. 'type' => 'int-11',
  60. 'name' => '更新时间',
  61. 'match' => array('is_numeric', time()),
  62. 'desc' => '',
  63. 'list' => 'date("Y-m-d H:i:s", {mdate})',
  64. ),
  65. 'state' => array
  66. (
  67. 'type' => 'tinyint-1',
  68. 'name' => '状态',
  69. 'default' => '1',
  70. 'desc' => '请选择状态',
  71. 'match' => 'is_numeric',
  72. ),
  73. 'cdate' => array
  74. (
  75. 'type' => 'int-11',
  76. 'name' => '录入时间',
  77. 'match' => array('is_numeric', time()),
  78. 'desc' => '',
  79. # 只有insert时才生效
  80. 'insert' => true,
  81. ),
  82. ),
  83. //'top' => 'main/project_id',
  84. 'manage' => array
  85. (
  86. 'delete' => false,
  87. 'insert' => false,
  88. 'edit' => false,
  89. ),
  90. );