| 12345678910111213141516171819202122232425 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- class Installation extends Model
- {
- protected $table = 'QPRecordDB.dbo.installations'; // 数据表名
- protected $fillable = [
- 'app_token', 'app_name', 'app_name_dashboard', 'activity_kind',
- 'adid', 'gps_adid', 'country', 'city', 'language', 'is_organic',
- 'first_tracker', 'fb_install_referrer', 'device_manufacturer', 'device_name','ip_address','meta_install_referrer'
- ]; // 可批量赋值的属性
- // public $timestamps = true; // 启用自动时间戳
- protected $casts = [
- 'is_organic' => 'boolean',
- ]; // 属性的类型转换
- // protected $dateFormat = 'Y-m-d H:i:s'; // 定义数据库使用的日期格式
- // 可以根据需要定义更多的模型方法或业务逻辑
- }
|