DDEmployee.php 688 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class DDEmployee extends Model
  5. {
  6. protected $guarded = [];
  7. protected $table = "dd_employee"; //指定表
  8. const CREATED_AT = 'crt_time';
  9. const UPDATED_AT = 'upd_time';
  10. protected $dateFormat = 'U';
  11. const qx_zero = 0;
  12. const qx_one = 1;
  13. const type_one = 1; //浙江
  14. const type_two = 2; //杭州
  15. const type = [
  16. self::type_one => '浙江星科源新材料有限公司',
  17. self::type_two => '杭州星科源新材料有限公司',
  18. ];
  19. const type_redis = [
  20. self::type_one => 'ZJXKYACCESSTOKENKEY',
  21. self::type_two => 'HZXKYACCESSTOKENKEY',
  22. ];
  23. }