Files
ntonpower/app/api/model/PlatformCoin.php
2026-10-14 14:00:29 +08:00

26 lines
499 B
PHP

<?php
namespace app\api\model;
/**
* @mixin \think\Model
*/
class PlatformCoin extends BaseModel
{
protected $schema = [
'id' =>'int',
'currency_id' =>'int',
'platform_id' =>'int',
'create_time' =>'int',
'update_time' =>'int',
];
/**
* 平台-币种关联模型
* @return \think\model\relation\BelongsTo
*/
public function getCoin()
{
return $this->belongsTo(Currency::class,'currency_id','id');
}
}