| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- namespace App\Module\Fund\Models;
- use App\Module\Fund\Enums\FUND_TYPE;
- use UCore\ModelCore;
- /**
- * 资金管理员
- *
- * field start
- * @property int $id 自增
- * @property int $total_fee 钱数
- * @property int $status
- * @property \App\Module\Fund\Enums\FUND_TYPE $fund_id id
- * @property int $user_id 这个订单的用户
- * @property int $admin_id 管理员的id
- * @property int $create_time 创建时间
- * @property string $remark 备注
- * field end
- */
- class FundAdminModel extends ModelCore
- {
- protected $table = 'fund_admin';
- // attrlist start
- protected $fillable = [
- 'id',
- 'total_fee',
- 'status',
- 'fund_id',
- 'user_id',
- 'admin_id',
- 'create_time',
- 'remark',
- ];
- // attrlist end
- 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');
- }
- }
|