| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace app\model\saas;
- use app\extra\basic\Model;
- /**
- * @property integer $id (主键)
- * @property string $truename
- * @property integer $agent_id
- * @property string $contact
- * @property mixed $mobile
- * @property integer $mall_type 1系统2自定义
- * @property mixed $vip_at
- * @property integer $status 1正常2冻结3到期
- * @property mixed $create_at
- */
- class SaasAgent 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_agent";
-
- /**
- * 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 user()
- {
- return $this->hasOne("app\model\system\SystemUser","user_id","agent_id");
- }
- }
|