| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?php
- namespace App\Module\Fund\Models;
- use UCore\ModelCore;
- /**
- * 资金流通记录
- *
- * field start
- * field end
- */
- class FundCirculationModel extends ModelCore
- {
- protected $table = 'fund_circulation';
- protected $fillable = [
- 'user_id',
- 'fund_id',
- 'amount',
- 'type',
- 'status',
- 'remark',
- 'create_time',
- 'create_ip',
- 'update_time',
- 'update_ip',
- 'admin_id',
- 'admin_name',
- 'order_id',
- 'order_type'
- ];
- public $timestamps = false;
- /**
- * 获取用户信息
- */
- public function user()
- {
- return $this->belongsTo('App\Models\User', 'user_id');
- }
- /**
- * 获取资金账户
- */
- public function fund()
- {
- return $this->belongsTo('App\Module\Fund\Models\FundModel', 'fund_id');
- }
- /**
- * 获取订单信息
- */
- public function order()
- {
- return $this->belongsTo('App\Module\Fund\Models\FundOrderModel', 'order_id');
- }
- }
|