| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- namespace app\model\hx;
- use app\extra\basic\Model;
- use think\model\relation\HasOne;
- /**
- * @property integer $id (主键)
- * @property mixed $order_id
- * @property mixed $product_id
- * @property mixed $telephone
- * @property string $tel_addr
- * @property mixed $intention_poi_id 意向门店ID
- * @property mixed $order_status
- * @property mixed $clue_owner_name 所属人姓名
- * @property mixed $create_at
- */
- class HxOrderLife 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 = "hx_order_life";
-
- /**
- * 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(HxAgent::class,"agent_id","agent_id");
- }
- public function goods(): HasOne
- {
- return $this->hasOne(HxGoods::class,"product_id","product_id");
- }
- public function poi(): HasOne
- {
- return $this->hasOne(HxStorePoi::class,"poi_id","poi_id");
- }
- }
|