TodoList.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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'];
  11. const type_one = 1;
  12. const type_two = 2;
  13. const type_three = 3;
  14. const type_four = 4;
  15. const type_five = 5;
  16. const type_six = 6;
  17. const type_seven = 7;
  18. public static $type_value = [
  19. self::type_one => 0,
  20. self::type_two => 300,
  21. self::type_three => 600,
  22. self::type_four => 1200,
  23. self::type_five => 1800,
  24. self::type_six => 3600,
  25. self::type_seven => 7200,
  26. ];
  27. public static $type_name = [
  28. self::type_one => '单次',
  29. self::type_two => '5分钟',
  30. self::type_three => '10分钟',
  31. self::type_four => '20分钟',
  32. self::type_five => '30分钟',
  33. self::type_six => '1小时',
  34. self::type_seven => '2小时',
  35. ];
  36. const status_zero = 0;
  37. const status_one = 1;
  38. const status_two = 2;
  39. public static $status_name = [
  40. self::status_zero => '未开始',
  41. self::type_one => '进行中',
  42. self::type_two => '已完成',
  43. ];
  44. }