游戏-游戏奖励权重配置

This commit is contained in:
2026-04-13 16:26:06 +08:00
parent 938d0a60aa
commit 6c94d03ddf
7 changed files with 418 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace app\common\model;
use support\think\Model;
/**
* GameRewardWeight
*/
class GameRewardWeight extends Model
{
// 表名
protected $name = 'game_reward_weight';
// 自动写入时间戳字段
protected $autoWriteTimestamp = true;
// 字段类型转换
protected $type = [
'create_time' => 'integer',
'update_time' => 'integer',
];
public function gameChannel(): \think\model\relation\BelongsTo
{
return $this->belongsTo(\app\common\model\GameChannel::class, 'game_channel_id', 'id');
}
}