| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- namespace app\model\saas;
- use app\extra\basic\Model;
- use think\model\relation\HasOne;
- /**
- * @property integer $id (主键)
- * @property mixed $openid
- * @property integer $agent_id
- * @property integer $shop_id
- * @property integer $balance 余额
- * @property integer $total_balance 累计充值
- * @property integer $total_consume 累计消费
- * @property mixed $create_at
- */
- class SaasUser 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 = "saas_user";
-
- /**
- * 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("app\model\saas\SaasShop","shop_id","shop_id");
- }
- }
|