| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhActive".
- *
- * @property int $id
- * @property int $merchantId 商家id
- * @property string $title 活动标题
- * @property string $content 内容
- * @property string $address 活动地点
- * @property int $adminId 创建管理员id
- * @property string $classIdList 票种id list
- * @property int $startTime 活动开始时间
- * @property int $endTime 活动结束时间
- * @property int $deadline 报名截止日期
- * @property string $applyUserName 发布人名称
- * @property int $allowNum 允许报名人数,门票数量
- * @property tinyint $needCheck 报名是否要审核通过
- * @property int $scanNum 浏览次数
- * @property int $collectNum 收藏次数
- * @property int $applyNum 报名人数
- * @property int $status 状态
- * @property string $urlQrCode 链接二维码
- * @property string $createTime 创建时间
- * @property string $updateTime 修改时间
- */
- class xhActive extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhActive';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['merchantId', 'adminId', 'startTime', 'endTime', 'deadline', 'allowNum', 'needCheck', 'scanNum', 'collectNum', 'applyNum', 'status'], 'integer'],
- [['content', 'createTime'], 'required'],
- [['content'], 'string'],
- [['createTime', 'updateTime'], 'safe'],
- [['title'], 'string', 'max' => 200],
- [['address', 'classIdList'], 'string', 'max' => 50],
- [['applyUserName'], 'string', 'max' => 20],
- [['urlQrCode'], 'string', 'max' => 500],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'merchantId' => 'Merchant ID',
- 'title' => 'Title',
- 'content' => 'Content',
- 'address' => 'Address',
- 'adminId' => 'Admin ID',
- 'classIdList' => 'Class Id List',
- 'startTime' => 'Start Time',
- 'endTime' => 'End Time',
- 'deadline' => 'Deadline',
- 'applyUserName' => 'Apply User Name',
- 'allowNum' => 'Allow Num',
- 'needCheck' => 'Need Check',
- 'scanNum' => 'Scan Num',
- 'collectNum' => 'Collect Num',
- 'applyNum' => 'Apply Num',
- 'status' => 'Status',
- 'urlQrCode' => 'Url Qr Code',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|