ProductInventorySet.php 501 B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Model;
  3. use App\Scopes\TopDepartmentScope;
  4. use Illuminate\Database\Eloquent\Model;
  5. class ProductInventorySet extends UseScopeBaseModel
  6. {
  7. protected $table = "depart_set"; //指定表
  8. const CREATED_AT = 'crt_time';
  9. const UPDATED_AT = 'upd_time';
  10. protected $dateFormat = 'U';
  11. const type_one = 1;//校验库存
  12. const type_two = 2;//不校验证库存
  13. public static $type_name = [
  14. self::type_one => '是',
  15. self::type_two => '否',
  16. ];
  17. }