YzActivityPromoCode.php 562 B

12345678910111213141516171819202122232425
  1. <?php
  2. declare (strict_types = 1);
  3. namespace app\youzan\model;
  4. use app\txx\model\ActGood;
  5. use think\Model;
  6. /**
  7. * @mixin \think\Model
  8. */
  9. class YzActivityPromoCode extends Model
  10. {
  11. protected $connection = 'mysql_yz';//切换连接参数
  12. protected $table = 'yz_activity_promocode';
  13. protected $pk = 'id';
  14. protected $autoWriteTimestamp = false;
  15. protected $createTime="createTime";
  16. protected $updateTime="updateTime";
  17. public function ActGood()
  18. {
  19. return $this->belongsTo("app\\txx\model\ActGood",'act_good_id','id');
  20. }
  21. }