| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace app\model\saas;
- use app\extra\basic\Model;
- use think\model\relation\HasMany;
- /**
- * @property integer $id (主键)
- * @property mixed $poi_id 门店ID
- * @property string $plan_name
- * @property string $merchant_phone
- * @property integer $status
- * @property mixed $create_at
- */
- class SaasLivePlan 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_live_plan";
-
- /**
- * 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(): HasMany
- {
- return $this->hasMany(SaasLivePlanGoods::class,'plan_id','plan_id');
- }
- public function star(): HasMany
- {
- return $this->hasMany(SaasLivePlanStar::class,'plan_id','plan_id');
- }
- }
|