12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace app\common\model;
- use think\Model;
- class GiftUserParty extends Model
- {
-
- protected $autoWriteTimestamp = 'int';
-
- protected $createTime = 'createtime';
- public function user()
- {
- return $this->belongsTo('app\common\model\User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
- }
- public function toUser()
- {
- return $this->belongsTo('app\common\model\User', 'user_to_id', 'id', [], 'LEFT')->setEagerlyType(0);
- }
- public function party()
- {
- return $this->belongsTo('app\common\model\Party', 'party_id', 'id', [], 'LEFT')->setEagerlyType(0);
- }
- }
|