BusinessOpportunityInfo.php 641 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class BusinessOpportunityInfo extends Model
  5. {
  6. protected $table = "business_opportunity_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_five = 5; // 图片
  12. const type_six = 6; // 文件
  13. public static $type = [
  14. self::type_one,
  15. self::type_five,
  16. self::type_six,
  17. ];
  18. public static $contact_type = [
  19. 1 => '手机',
  20. 2 => '电话',
  21. 3 => '微信号',
  22. 4 => '其他',
  23. ];
  24. }