| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
- namespace app\model\saas;
- use app\extra\basic\Model;
- use think\model\relation\HasOne;
- /**
- * @property integer $id (主键)
- * @property integer $uuid
- * @property integer $agent_id 代理id
- * @property integer $store_id 店铺id
- * @property string $order_id
- * @property integer $product_id 商品ID
- * @property string $product_name
- * @property string $username
- * @property string $code
- * @property string $mobile
- * @property string $region
- * @property string $address
- * @property integer $status
- * @property string $express_id 顺丰订单id
- * @property integer $is_send 1已发送
- * @property integer $is_auto 1自动呼叫快递
- * @property string $remark
- * @property mixed $create_at
- */
- class SaasOrder 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_order";
-
- /**
- * 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 goods(): HasOne
- {
- return $this->hasOne("app\model\saas\SaasGoods",'out_id','product_id');
- }
- public function poi(): HasOne
- {
- return $this->hasOne("app\model\saas\SaasStoreShop",'poi_id','poi_id');
- }
- }
|