<?php namespace app\model; use think\Model; class BpsAdLandingInsight extends Model { // 设置当前模型对应的完整数据表名称 protected $table = 'bps.bps_ads_landing_url_insights'; // 设置复合主键 protected $pk = ['id']; // 设置自动时间戳 protected $autoWriteTimestamp = true; // 定义时间戳字段 protected $createTime = 'create_at'; protected $updateTime = 'update_at'; // 设置字段类型和默认值 protected $casts = [ ]; // 默认值设置 protected $defaults = [ ]; }