ContactsInfo.php 553 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class ContactsInfo extends Model
  5. {
  6. protected $table = "contacts_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. public static $type = [
  15. self::type_one,
  16. self::type_two,
  17. self::type_three,
  18. self::type_four,
  19. ];
  20. }