24 lines
391 B
PHP
Executable File
24 lines
391 B
PHP
Executable File
<?php
|
|
|
|
namespace app\common\model;
|
|
|
|
|
|
use think\Model;
|
|
|
|
/**
|
|
* 拼团活动商品-模型
|
|
* Class TeamActivity
|
|
* @package app\common\model
|
|
*/
|
|
class TeamActivity extends Model
|
|
{
|
|
// protected $pk = 'team_id';
|
|
/**
|
|
* Notes: 关联拼团模型
|
|
* @author kiki
|
|
*/
|
|
public function teamFound()
|
|
{
|
|
return $this->hasMany('TeamFound', 'team_id', 'team_id');
|
|
}
|
|
} |