init: 项目初始代码

This commit is contained in:
2026-10-14 14:00:29 +08:00
commit cc434cf89f
464 changed files with 66984 additions and 0 deletions

View 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');
}
}