| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- namespace app\model\saas;
- use app\extra\basic\Model;
- use think\model\relation\HasOne;
- /**
- * @property integer $id (主键)
- * @property integer $agent_id 代理id
- * @property integer $store_id 来客账户id
- * @property string $store_name
- * @property string $express_name
- * @property string $express_mobile
- * @property string $express_goods
- * @property string $express_unit
- * @property string $express_address
- * @property integer $express_time
- * @property integer $express_type 快递类型
- * @property integer $order_end 核销时机1小程序提交2快递取件3快递签收
- * @property integer $is_auto 1开启自动呼叫
- * @property integer $is_reback 1开启自动拦截
- * @property integer $status
- * @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 agent(): HasOne
- {
- return $this->hasOne("app\model\saas\SaasAgent","agent_id","agent_id");
- }
- }
|