| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhGoodsSetting".
- *
- * @property int $id
- * @property int $merchantId 商家id
- * @property int $startRiseTime 开始涨价时间
- * @property int $endRiseTime 结束涨价时间
- * @property int $riseType 涨价方式 0按百分比 1按金额
- * @property int $riseAmount 涨价金额或百分比数
- * @property string $goodSIntroduce 商品统一说明
- * @property int $addTime 添加时间
- * @property string $createTime 创建时间
- * @property string $updateTime
- */
- class xhGoodsSetting extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhGoodsSetting';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['merchantId', 'startRiseTime', 'endRiseTime', 'riseType', 'riseAmount', 'addTime'], 'integer'],
- [['createTime'], 'required'],
- [['createTime', 'updateTime'], 'safe'],
- [['goodSIntroduce'], 'string', 'max' => 10000],
- [['merchantId'], 'unique'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'merchantId' => 'Merchant ID',
- 'startRiseTime' => 'Start Rise Time',
- 'endRiseTime' => 'End Rise Time',
- 'riseType' => 'Rise Type',
- 'riseAmount' => 'Rise Amount',
- 'goodSIntroduce' => 'Good Sintroduce',
- 'addTime' => 'Add Time',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|