CustomerInfo.php 853 B

1234567891011121314151617181920212223242526272829303132333435
  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; // 负责人
  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 $contact_type = [
  26. 1 => '手机',
  27. 2 => '电话',
  28. 3 => '微信号',
  29. 4 => '其他',
  30. ];
  31. }