[游戏管理]-游戏奖励配置
This commit is contained in:
29
app/common/model/GameRewardConfig.php
Normal file
29
app/common/model/GameRewardConfig.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model;
|
||||
|
||||
use support\think\Model;
|
||||
|
||||
/**
|
||||
* GameRewardConfig
|
||||
*/
|
||||
class GameRewardConfig extends Model
|
||||
{
|
||||
// 表名
|
||||
protected $name = 'game_reward_config';
|
||||
|
||||
// 自动写入时间戳字段
|
||||
protected $autoWriteTimestamp = true;
|
||||
|
||||
// 字段类型转换(避免时间戳被写成 'now' 字符串)
|
||||
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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user