| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhLuckyDrawAwardCustomer".
- *
- * @property int $id
- * @property int $uid 中奖用户id
- * @property string $userName 用户昵称
- * @property int $awardId 中奖的奖品id
- * @property string $awardName 奖品名称
- * @property int $count 此奖品的数量
- * @property int $status 领取状态:-1、过期未领取;0、未领取(默认);1、已领取
- * @property int $luckyDrawActivityId 抽奖活动表ID
- *
- */
- class xhLuckyDrawAwardCustomer extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhLuckyDrawAwardCustomer';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['uid', 'awardId', 'count', 'status', 'luckyDrawActivityId', 'hitTime'], 'integer'],
- [['userName', 'awardName'], 'required'],
- [['userName', 'awardName'], 'string', 'max' => 20],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'uid' => 'Uid',
- 'userName' => 'User Name',
- 'awardId' => 'Award Id',
- 'awardName' => 'Award Name',
- 'count' => 'Count',
- 'status' => 'Status',
- 'luckyDrawActivityId' => 'Lucky Draw Activity Id',
- 'hitTime' => 'Hit Time'
- ];
- }
- }
|