PondSetting.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace app\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%pond_setting}}".
  6. *
  7. * @property integer $id
  8. * @property integer $store_id
  9. * @property integer $start_time
  10. * @property integer $end_time
  11. * @property integer $integral
  12. * @property string $rule
  13. */
  14. class PondSetting extends \yii\db\ActiveRecord
  15. {
  16. /**
  17. * @inheritdoc
  18. */
  19. public static function tableName()
  20. {
  21. return '{{%pond_setting}}';
  22. }
  23. /**
  24. * @inheritdoc
  25. */
  26. public function rules()
  27. {
  28. return [
  29. [['store_id', 'integral'], 'integer'],
  30. [['start_time', 'end_time'], 'required'],
  31. [['rule'], 'string', 'max' => 1000],
  32. ];
  33. }
  34. /**
  35. * @inheritdoc
  36. */
  37. public function attributeLabels()
  38. {
  39. return [
  40. 'id' => 'ID',
  41. 'store_id' => 'Store ID',
  42. 'start_time' => '开始时间',
  43. 'end_time' => '结束时间',
  44. 'integral' => '单次扣减积分数量',
  45. 'rule' => '规则',
  46. ];
  47. }
  48. }