| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace app\model\saas;
- use app\extra\basic\Model;
- use think\model\relation\HasOne;
- /**
- * @property integer $id (主键)
- * @property mixed $poi_id
- * @property mixed $order_sn
- * @property integer $money
- * @property integer $status 1生效0待处理
- * @property integer $type
- * @property mixed $create_at
- */
- class SaasDepositLog 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_deposit_log";
-
- /**
- * 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 poi(): HasOne
- {
- return $this->hasOne(SaasStore::class, 'poi_id', 'poi_id');
- }
- }
|