| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhVisitByMonth".
- *
- * @property int $id
- * @property int $year 年
- * @property int $month 月份
- * @property int $riseNum 增加数量
- * @property int $totalNum 总数量
- * @property int $merchantId 商家id
- * @property string $createTime 创建时间
- * @property string $updateTime
- */
- class xhVisitByMonth extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhVisitByMonth';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['year', 'month', 'riseNum', 'totalNum', 'merchantId'], 'integer'],
- [['createTime'], 'required'],
- [['createTime', 'updateTime'], 'safe'],
- [['merchantId', 'year', 'month'], 'unique', 'targetAttribute' => ['merchantId', 'year', 'month']],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'year' => 'Year',
- 'month' => 'Month',
- 'riseNum' => 'Rise Num',
- 'totalNum' => 'Total Num',
- 'merchantId' => 'Merchant ID',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|