webman/app/model/Reward.php

33 lines
854 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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
}