| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhActiveTicketClass".
- *
- * @property int $id
- * @property int $activeId 活动id
- * @property int $merchantId 商家id
- * @property string $name 票名
- * @property string $price 价格
- * @property string $createTime 创建时间
- * @property string $updateTime 修改时间
- */
- class xhActiveTicketClass extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhActiveTicketClass';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['activeId', 'merchantId'], 'integer'],
- [['price'], 'number'],
- [['createTime'], 'required'],
- [['createTime', 'updateTime'], 'safe'],
- [['name'], 'string', 'max' => 20],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'activeId' => 'Active ID',
- 'merchantId' => 'Merchant ID',
- 'name' => 'Name',
- 'price' => 'Price',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|