CustomerInfo.php 687 B

123456789101112131415161718192021222324252627
  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. public static $type = [
  17. self::type_one,
  18. self::type_two,
  19. self::type_three,
  20. self::type_four,
  21. self::type_five,
  22. self::type_six,
  23. ];
  24. }