| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "{{%pond_setting}}".
- *
- * @property integer $id
- * @property integer $store_id
- * @property integer $start_time
- * @property integer $end_time
- * @property integer $integral
- * @property string $rule
- */
- class PondSetting extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%pond_setting}}';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['store_id', 'integral'], 'integer'],
- [['start_time', 'end_time'], 'required'],
- [['rule'], 'string', 'max' => 1000],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'start_time' => '开始时间',
- 'end_time' => '结束时间',
- 'integral' => '单次扣减积分数量',
- 'rule' => '规则',
- ];
- }
- }
|