123456789101112131415161718192021222324 |
- <?php
- declare (strict_types = 1);
- namespace app\txx\model;
- use think\Model;
- /**
- * @mixin \think\Model
- */
- class YzActivityPromoCode extends Model
- {
- protected $connection = 'mysql_yz';//切换连接参数
- protected $table = 'yz_activity_promocode';
- protected $pk = 'id';
- protected $autoWriteTimestamp = false;
- protected $createTime="createTime";
- protected $updateTime="updateTime";
- public function Good()
- {
- return $this->belongsTo(ActGood::class,'act_good_id','id')->bind(["good_name","actCode"]);
- }
- }
|