CustomerInfo.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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_nine = 9; //前负责人
  17. public static $type = [
  18. self::type_one,
  19. self::type_two,
  20. self::type_three,
  21. self::type_four,
  22. self::type_five,
  23. self::type_six,
  24. ];
  25. public static $see_man = [
  26. self::type_two,
  27. self::type_three,
  28. ];
  29. public static $man = [
  30. self::type_two,
  31. self::type_three,
  32. self::type_nine,
  33. ];
  34. public static $man2 = [
  35. self::type_two,
  36. self::type_three,
  37. self::type_nine,
  38. ];
  39. }