xhLuckyDrawAwardCustomer.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhLuckyDrawAwardCustomer".
  5. *
  6. * @property int $id
  7. * @property int $uid 中奖用户id
  8. * @property string $userName 用户昵称
  9. * @property int $awardId 中奖的奖品id
  10. * @property string $awardName 奖品名称
  11. * @property int $count 此奖品的数量
  12. * @property int $status 领取状态:-1、过期未领取;0、未领取(默认);1、已领取
  13. * @property int $luckyDrawActivityId 抽奖活动表ID
  14. *
  15. */
  16. class xhLuckyDrawAwardCustomer extends xhBaseModel
  17. {
  18. /**
  19. * @inheritdoc
  20. */
  21. public static function tableName()
  22. {
  23. return 'xhLuckyDrawAwardCustomer';
  24. }
  25. /**
  26. * @inheritdoc
  27. */
  28. public function rules()
  29. {
  30. return [
  31. [['uid', 'awardId', 'count', 'status', 'luckyDrawActivityId', 'hitTime'], 'integer'],
  32. [['userName', 'awardName'], 'required'],
  33. [['userName', 'awardName'], 'string', 'max' => 20],
  34. ];
  35. }
  36. /**
  37. * @inheritdoc
  38. */
  39. public function attributeLabels()
  40. {
  41. return [
  42. 'id' => 'ID',
  43. 'uid' => 'Uid',
  44. 'userName' => 'User Name',
  45. 'awardId' => 'Award Id',
  46. 'awardName' => 'Award Name',
  47. 'count' => 'Count',
  48. 'status' => 'Status',
  49. 'luckyDrawActivityId' => 'Lucky Draw Activity Id',
  50. 'hitTime' => 'Hit Time'
  51. ];
  52. }
  53. }