Screen.php 748 B

123456789101112131415161718192021222324252627282930313233343536
  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. }