SportsBag.php 871 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Model;
  3. class SportsBag extends UseScopeBaseModel
  4. {
  5. protected $table = "sports_bag"; //指定表
  6. const CREATED_AT = 'crt_time';
  7. const UPDATED_AT = 'upd_time';
  8. protected $dateFormat = 'U';
  9. const range_function = 'sportsBagRange';
  10. const is_check_function = 'sportsBagCheck';
  11. const prefix = 'HD';
  12. const State_minus_one = -1;//驳回
  13. const STATE_ZERO = 0;//未审核
  14. const STATE_ONE = 1;//待审核
  15. const STATE_TWO = 2;//已审核
  16. public static $name = [
  17. self::State_minus_one => '驳回',
  18. self::STATE_ZERO => '未审核',
  19. self::STATE_ONE => '待审核',
  20. self::STATE_TWO => '已审核'
  21. ];
  22. const type_one = 1;
  23. const type_two = 2;
  24. public static $attribute_name = [
  25. self::type_one => '销售属性',
  26. self::type_two => '采购属性',
  27. ];
  28. }