| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <?php
- namespace app\model\hx;
- use app\extra\basic\Model;
- use think\model\relation\HasOne;
- /**
- * @property integer $id (主键)
- * @property integer $store_id 来客id
- * @property integer $poi_id
- * @property string $poi_name
- * @property string $poi_address
- * @property string $poi_logo
- * @property mixed $poi_account_id 门店账户ID
- * @property string $poi_city
- * @property float $longitude
- * @property float $latitude
- * @property mixed $product_type
- * @property integer $is_default
- * @property integer $status
- * @property mixed $order_start 核销开始时间
- * @property mixed $order_end 核销结束时间
- * @property mixed $create_at
- */
- class HxStorePoi 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_store_poi";
-
- /**
- * 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");
- }
- }
|