xhActive.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhActive".
  5. *
  6. * @property int $id
  7. * @property int $merchantId 商家id
  8. * @property string $title 活动标题
  9. * @property string $content 内容
  10. * @property string $address 活动地点
  11. * @property int $adminId 创建管理员id
  12. * @property string $classIdList 票种id list
  13. * @property int $startTime 活动开始时间
  14. * @property int $endTime 活动结束时间
  15. * @property int $deadline 报名截止日期
  16. * @property string $applyUserName 发布人名称
  17. * @property int $allowNum 允许报名人数,门票数量
  18. * @property tinyint $needCheck 报名是否要审核通过
  19. * @property int $scanNum 浏览次数
  20. * @property int $collectNum 收藏次数
  21. * @property int $applyNum 报名人数
  22. * @property int $status 状态
  23. * @property string $urlQrCode 链接二维码
  24. * @property string $createTime 创建时间
  25. * @property string $updateTime 修改时间
  26. */
  27. class xhActive extends xhBaseModel
  28. {
  29. /**
  30. * @inheritdoc
  31. */
  32. public static function tableName()
  33. {
  34. return 'xhActive';
  35. }
  36. /**
  37. * @inheritdoc
  38. */
  39. public function rules()
  40. {
  41. return [
  42. [['merchantId', 'adminId', 'startTime', 'endTime', 'deadline', 'allowNum', 'needCheck', 'scanNum', 'collectNum', 'applyNum', 'status'], 'integer'],
  43. [['content', 'createTime'], 'required'],
  44. [['content'], 'string'],
  45. [['createTime', 'updateTime'], 'safe'],
  46. [['title'], 'string', 'max' => 200],
  47. [['address', 'classIdList'], 'string', 'max' => 50],
  48. [['applyUserName'], 'string', 'max' => 20],
  49. [['urlQrCode'], 'string', 'max' => 500],
  50. ];
  51. }
  52. /**
  53. * @inheritdoc
  54. */
  55. public function attributeLabels()
  56. {
  57. return [
  58. 'id' => 'ID',
  59. 'merchantId' => 'Merchant ID',
  60. 'title' => 'Title',
  61. 'content' => 'Content',
  62. 'address' => 'Address',
  63. 'adminId' => 'Admin ID',
  64. 'classIdList' => 'Class Id List',
  65. 'startTime' => 'Start Time',
  66. 'endTime' => 'End Time',
  67. 'deadline' => 'Deadline',
  68. 'applyUserName' => 'Apply User Name',
  69. 'allowNum' => 'Allow Num',
  70. 'needCheck' => 'Need Check',
  71. 'scanNum' => 'Scan Num',
  72. 'collectNum' => 'Collect Num',
  73. 'applyNum' => 'Apply Num',
  74. 'status' => 'Status',
  75. 'urlQrCode' => 'Url Qr Code',
  76. 'createTime' => 'Create Time',
  77. 'updateTime' => 'Update Time',
  78. ];
  79. }
  80. }