33 lines
854 B
PHP
33 lines
854 B
PHP
<?php
|
||
|
||
namespace app\model;
|
||
|
||
use support\Model;
|
||
|
||
/**
|
||
* @property int $id 唯一标识符
|
||
* @property string $title 标题,可能是类别或编号
|
||
* @property float $amount 金额或价值
|
||
* @property float $probability 概率,0 到 1 之间的小数
|
||
* @property int $stock_num 库存数量
|
||
* @property int $createtime 创建时间(Unix 时间戳)
|
||
* @property int $updatetime 最后更新时间(Unix 时间戳)
|
||
*/
|
||
class Reward extends Model
|
||
{
|
||
/**
|
||
* The table associated with the model.
|
||
*
|
||
* @var string
|
||
*/
|
||
protected $table = 'turntable';
|
||
|
||
/**
|
||
* The primary key associated with the table.
|
||
*
|
||
* @var string
|
||
*/
|
||
protected $primaryKey = 'id';
|
||
public $timestamps = false; // 如果不需要自动维护创建和更新时间,可以将此设置为 false
|
||
}
|