| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace app\model\system;
- use app\extra\basic\Model;
- use app\model\saas\SaasShop;
- use think\model\relation\HasOne;
- /**
- * @property integer $id (主键)
- * @property mixed $order_sn 结算编号
- * @property mixed $agent_id
- * @property integer $money
- * @property mixed $day
- * @property integer $status 1已结算0待结算
- * @property mixed $member_id 银行卡id
- * @property mixed $create_at
- */
- class SystemUserMoney extends Model
- {
- /**
- * The connection name for the model.
- *
- * @var string|null
- */
- protected $connection = 'mysql';
-
- /**
- * The table associated with the model.
- *
- * @var string
- */
- protected string $table = "system_user_money";
-
- /**
- * The primary key associated with the table.
- *
- * @var string
- */
- protected string $primaryKey = "id";
-
- /**
- * Indicates if the model should be timestamped.
- *
- * @var bool
- */
- public bool $timestamps = false;
- public function shop(): HasOne
- {
- return $this->hasOne(SaasShop::class,"shop_id","agent_id");
- }
- }
|