| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace app\model\saas;
- use app\extra\basic\Model;
- use think\model\relation\HasOne;
- /**
- * @property integer $id (主键)
- * @property mixed $poi_id
- * @property string $title
- * @property mixed $mon 月份
- * @property integer $status 0待结算1已结算
- * @property mixed $end_day 结算时间
- * @property integer $order_money 核销金额
- * @property integer $store_money 结算金额
- */
- class SaasBillsMon 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_bills_mon";
-
- /**
- * 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 store(): HasOne
- {
- return $this->hasOne(SaasStore::class,"poi_id","poi_id");
- }
- }
|