26 lines
499 B
PHP
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');
|
|
}
|
|
}
|