Screen.php 874 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Screen extends Model
  5. {
  6. protected $table = "screen"; //指定表
  7. const CREATED_AT = 'crt_time';
  8. const UPDATED_AT = 'upd_time';
  9. protected $dateFormat = 'U';
  10. const type_one = 1;
  11. const type_two = 2;
  12. const type_three = 3;
  13. const type_four = 4;
  14. public static $name = [
  15. 1 => '移动仓设备',
  16. 2 => '工作仓设备',
  17. 3 => '社区仓设备'
  18. ];
  19. public static $online = [
  20. 0 => '离线',
  21. 1 => '在线'
  22. ];
  23. public static $gps = [
  24. 0 => '停运',
  25. 1 => '闲置',
  26. 2 => '载运'
  27. ];
  28. public static $exception = [
  29. 0 => '异常',
  30. 1 => '正常'
  31. ];
  32. //文件类型
  33. const FILE_TYPE = [
  34. 'txt',
  35. 'jpg',
  36. 'png',
  37. 'gif',
  38. 'jpeg',
  39. ];
  40. }