| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- namespace App\Module\Fund\Models;
- use UCore\ModelCore;
- /**
- * 资金流通记录
- *
- * field start
- * @property int $id 自增
- * @property int $user_id 用户id
- * @property int $fund_id 资金ID
- * @property int $to_fund_id 流向资金账户
- * @property string $re_type 关联类型
- * @property int $re_id 关联类型
- * @property int $total_fee 充值钱数
- * @property int $create_time 创建时间
- * @property int $ok_time 处理时间
- * @property string $remark 备注信息
- * field end
- */
- class FundCirculationModel extends ModelCore
- {
- protected $table = 'fund_circulation';
- // attrlist start
- protected $fillable = [
- 'id',
- 'user_id',
- 'fund_id',
- 'to_fund_id',
- 're_type',
- 're_id',
- 'total_fee',
- 'create_time',
- 'ok_time',
- 'remark',
- ];
- // attrlist end
- 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');
- }
- }
|