Coupon.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /**
  3. * [WeEngine System] Copyright (c) 2014 WE7.CC
  4. * WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details.
  5. */
  6. namespace We7\Table\Coupon;
  7. class Coupon extends \We7Table {
  8. protected $tableName = 'coupon';
  9. protected $primaryKey = 'id';
  10. protected $field = array(
  11. 'uniacid',
  12. 'acid',
  13. 'card_id',
  14. 'type',
  15. 'logo_url',
  16. 'code_type',
  17. 'brand_name',
  18. 'title',
  19. 'sub_title',
  20. 'color',
  21. 'notice',
  22. 'description',
  23. 'date_info',
  24. 'quantity',
  25. 'use_custom_code',
  26. 'bind_openid',
  27. 'can_share',
  28. 'can_give_friend',
  29. 'get_limit',
  30. 'service_phone',
  31. 'extra',
  32. 'status',
  33. 'is_display',
  34. 'is_selfconsume',
  35. 'promotion_url_name',
  36. 'promotion_url',
  37. 'promotion_url_sub_title',
  38. 'source',
  39. 'dosage'
  40. );
  41. protected $default = array(
  42. 'uniacid' => '',
  43. 'acid' => 0,
  44. 'card_id' => 0,
  45. 'type' => '',
  46. 'logo_url' => '',
  47. 'code_type' => 1,
  48. 'brand_name' => '',
  49. 'title' => '',
  50. 'sub_title' => '',
  51. 'color' => '',
  52. 'notice',
  53. 'description' => '',
  54. 'date_info' => '',
  55. 'quantity' => 0,
  56. 'use_custom_code' => 0,
  57. 'bind_openid' => 0,
  58. 'can_share' => 1,
  59. 'can_give_friend' => 1,
  60. 'get_limit' => 0,
  61. 'service_phone' => '',
  62. 'extra' => '',
  63. 'status' => 1,
  64. 'is_display' => 1,
  65. 'is_selfconsume' => 0,
  66. 'promotion_url_name' => '',
  67. 'promotion_url' => '',
  68. 'promotion_url_sub_title' => '',
  69. 'source' => 2,
  70. 'dosage' => 0
  71. );
  72. }