TodoList.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace App\Model;
  3. class TodoList extends UseScopeBaseModel
  4. {
  5. protected $table = "to_do_list"; //指定表
  6. const CREATED_AT = 'crt_time';
  7. const UPDATED_AT = 'upd_time';
  8. protected $dateFormat = 'U';
  9. const employee_column = "crt_id";
  10. public static $field = ['title','id','type','remind_start','man_type','organization_name','crt_id','crt_time','contact','address','content','status','remind_interval','last_remind_time','last_time_result'];
  11. public static $job = 'todo_remind';
  12. const type_one = 1;
  13. const type_two = 2;
  14. const type_three = 3;
  15. const type_four = 4;
  16. const type_five = 5;
  17. const type_six = 6;
  18. const type_seven = 7;
  19. public static $type_value = [
  20. self::type_one => 0,
  21. self::type_two => 300,
  22. self::type_three => 600,
  23. self::type_four => 1200,
  24. self::type_five => 1800,
  25. self::type_six => 3600,
  26. self::type_seven => 7200,
  27. ];
  28. public static $type_name = [
  29. self::type_one => '单次',
  30. self::type_two => '5分钟',
  31. self::type_three => '10分钟',
  32. self::type_four => '20分钟',
  33. self::type_five => '30分钟',
  34. self::type_six => '1小时',
  35. self::type_seven => '2小时',
  36. ];
  37. const status_zero = 0;
  38. const status_one = 1;
  39. const status_two = 2;
  40. public static $status_name = [
  41. self::status_zero => '未开始',
  42. self::type_one => '进行中',
  43. self::type_two => '已完成',
  44. ];
  45. }