| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace App\Module\Fund\Models;
- use App\Module\Fund\Enums\FUND_TYPE;
- use UCore\ModelCore;
- class FundAdminModel extends ModelCore
- {
- protected $table = 'fund_admin';
- protected $fillable = [
- 'admin_id',
- 'admin_name',
- 'fund_id',
- 'type',
- 'status',
- 'remark',
- 'create_time',
- 'create_ip',
- 'update_time',
- 'update_ip'
- ];
- public $timestamps = false;
- protected $casts = [
- 'fund_id' => FUND_TYPE::class,
- ];
- /**
- * 获取管理员信息
- */
- public function admin()
- {
- return $this->belongsTo('Dcat\Admin\Models\Administrator', 'admin_id');
- }
- /**
- * 获取资金账户
- */
- public function fund()
- {
- return $this->belongsTo('App\Module\Fund\Models\FundModel', 'fund_id');
- }
- }
|