CustomerInfo.php 1015 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class CustomerInfo extends Model
  5. {
  6. protected $table = "customer_info"; //指定表
  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; // 销售sa/负责 人员
  12. const type_three = 3; // 协同人
  13. const type_four = 4; // 联系人
  14. const type_five = 5; // 图片
  15. const type_six = 6; // 文件
  16. const type_seven = 7; // 可见部门
  17. const type_eight = 8; // 可见人
  18. public static $type = [
  19. self::type_one,
  20. self::type_two,
  21. self::type_three,
  22. self::type_four,
  23. self::type_five,
  24. self::type_six,
  25. self::type_seven,
  26. self::type_eight,
  27. ];
  28. public static $man = [
  29. self::type_two,
  30. self::type_three,
  31. self::type_eight,
  32. ];
  33. public static $man2 = [
  34. self::type_two,
  35. self::type_three,
  36. ];
  37. }