| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace App\Module\Fund\Models;
- use UCore\ModelCore;
- /**
- * 币种配置表
- *
- * 用于存储系统支持的各种币种信息,如美元、人民币、比特币等。
- * 一个币种可以对应多个账户种类(FundConfigModel)。
- *
- * field start
- * @property int $id 自增
- * @property string $identification 资金标识
- * @property string $icon 资金标识
- * @property string $name 资金名字
- * @property string $data1 数据
- * @property int $create_time
- * @property int $update_time 更新时间
- * field end
- */
- class FundCurrencyModel extends ModelCore
- {
- protected $table = 'fund_currency';
- // attrlist start
- protected $fillable = [
- 'id',
- 'identification',
- 'icon',
- 'name',
- 'data1',
- 'create_time',
- 'update_time',
- ];
- // attrlist end
- public $timestamps = false;
- /**
- * 获取该币种的所有账户种类
- *
- * 一个币种可以有多个账户种类,这是一对多关系中的"一"一方
- *
- * @return \Illuminate\Database\Eloquent\Relations\HasMany
- */
- public function fundConfigs()
- {
- return $this->hasMany(FundConfigModel::class, 'currency_id');
- }
- }
|