'department_id']; const TYPE_OUT = 1; // 转出 const TYPE_IN = 2; // 转入 //数据权限字段 public function __construct(array $attributes = []) { parent::__construct($attributes); $this->setTable(plugin()->webman->config('database.player_wallet_transfer_table')); } /** * 渠道信息 * @return BelongsTo */ public function channel(): BelongsTo { return $this->belongsTo(plugin()->webman->config('database.channel_model'), 'department_id', 'department_id')->withTrashed(); } /** * 玩家信息 * @return BelongsTo */ public function player(): BelongsTo { return $this->belongsTo(plugin()->webman->config('database.player_model'), 'player_id')->withTrashed(); } /** * 平台信息 * @return BelongsTo */ public function gamePlatform(): BelongsTo { return $this->belongsTo(plugin()->webman->config('database.game_platform_model'),'platform_id')->withTrashed(); } }