| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhLuckyDrawAward".
- *
- * @property int $id
- * @property string $awardName 奖品名称
- * @property int $order 每个活动中的排序
- * @property int $count 奖品发放数量
- * @property int $drawCount 已中奖的数量
- * @property float $probability 中奖概率
- * @property string $luckyDrawActivityId 抽奖活动表ID
- *
- */
- class xhLuckyDrawAward extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhLuckyDrawAward';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['awardName'], 'string', 'max' => 20],
- [['order', 'count', 'drawCount', 'luckyDrawActivityId'], 'integer'],
- [['probability'], 'number'],
- [['awardName'], 'required', 'message'=>'奖品名称必须填写'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'awardName' => 'Award Name',
- 'order' => 'Order',
- 'count' => 'Count',
- 'drawCount' => 'Draw Count',
- 'probability' => 'Probability',
- 'luckyDrawActivityId' => 'Lucky Draw Activity Id',
- ];
- }
- }
|