SettingLogModel.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace addons\QiJuhe\common\models;
  3. use Yii;
  4. use yii\db\ActiveRecord;
  5. use yii\behaviors\TimestampBehavior;
  6. /**
  7. * This is the model class for table "{{%addon_juhe_shop_setting_log}}".
  8. *
  9. * @property int $id
  10. * @property int $mall_id
  11. * @property string|null $before_setting
  12. * @property int|null $created_at
  13. * @property int|null $updated_at
  14. */
  15. class SettingLogModel extends ActiveRecord
  16. {
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public static function tableName()
  21. {
  22. return '{{%addons_qijuhe_setting_log}}';
  23. }
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public function rules()
  28. {
  29. return [
  30. [['mall_id'], 'required'],
  31. [['mall_id', 'created_at', 'updated_at'], 'integer'],
  32. [['before_setting'], 'string'],
  33. ];
  34. }
  35. /**
  36. * {@inheritdoc}
  37. */
  38. public function attributeLabels()
  39. {
  40. return [
  41. 'id' => 'ID',
  42. 'mall_id' => 'Mall ID',
  43. 'before_setting' => 'Before Setting',
  44. 'created_at' => 'Created At',
  45. 'updated_at' => 'Updated At',
  46. ];
  47. }
  48. }