[色子游戏]玩家购买抽奖记录

This commit is contained in:
2026-03-03 15:07:01 +08:00
parent 2cf409345e
commit ae3c0f0f78
8 changed files with 677 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
<?php
// +----------------------------------------------------------------------
// | saiadmin [ saiadmin快速开发框架 ]
// +----------------------------------------------------------------------
// | Author: your name
// +----------------------------------------------------------------------
namespace app\dice\model\player_coin_record;
use plugin\saiadmin\basic\think\BaseModel;
/**
* 玩家购买抽奖记录模型
*
* dice_player_coin_record 玩家购买抽奖记录
*
* @property $id ID
* @property $player_id 玩家id
* @property $use_coins 消耗硬币
* @property $total_draw_count 总抽奖次数
* @property $paid_draw_count 购买抽奖次数
* @property $free_draw_count 赠送抽奖次数
* @property $remark 备注
* @property $create_time 创建时间
* @property $update_time 修改时间
*/
class DicePlayerCoinRecord extends BaseModel
{
/**
* 数据表主键
* @var string
*/
protected $pk = 'id';
/**
* 数据库表名称
* @var string
*/
protected $table = 'dice_player_coin_record';
/**
* 关联模型 dicePlayer
*/
public function dicePlayer()
{
return $this->belongsTo(DicePlayer::class, 'player_id', 'id');
}
}