| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhUserByMonth".
- *
- * @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 xhUserByMonth extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhUserByMonth';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['year', 'month', 'riseNum', 'totalNum', 'merchantId'], 'integer'],
- [['createTime'], 'required'],
- [['createTime', 'updateTime'], 'safe'],
- ];
- }
- /**
- * @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',
- ];
- }
- }
|