init: 项目初始代码
This commit is contained in:
25
app/api/model/PlatformCoin.php
Normal file
25
app/api/model/PlatformCoin.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user