| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace app\model\saas;
- use app\extra\basic\Model;
- use think\model\relation\HasMany;
- /**
- * @property integer $id (主键)
- * @property mixed $poi_id
- * @property string $star_msg
- * @property mixed $quick
- * @property string $unline_msg
- * @property mixed $create_at
- */
- class SaasService 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_service";
-
- /**
- * 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 quick(): HasMany
- {
- return $this->hasMany(SaasServiceQuick::class,"poi_id","poi_id");
- }
- }
|