| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- namespace app\model\saas;
- use app\extra\basic\Model;
- /**
- * @property integer $id (主键)
- * @property integer $store_id
- * @property integer $agent_id
- * @property string $truename
- * @property string $store_code
- * @property string $store_mch
- * @property integer $store_type
- * @property integer $wash_type
- * @property string $store_address
- * @property string $store_status
- * @property string $store_order
- * @property string $store_sms
- * @property string $store_express
- * @property string $store_inter_order
- * @property string $mobile
- * @property mixed $vip_at
- * @property string $license
- * @property mixed $create_at
- */
- class SaasStore 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_store";
-
- /**
- * 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","store_id");
- }
- }
|