SearchHistory.php 688 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "search_history".
  6. *
  7. * @property int $id id
  8. * @property int $uid 用户ID
  9. * @property string|null $content 搜索内容
  10. * @property int $type 搜索类型
  11. * @property int $update_time 搜索类型
  12. */
  13. class SearchHistory extends \yii\db\ActiveRecord
  14. {
  15. /**
  16. * {@inheritdoc}
  17. */
  18. public static function tableName()
  19. {
  20. return 'search_history';
  21. }
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public function rules()
  26. {
  27. return [
  28. ];
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function attributeLabels()
  34. {
  35. return [
  36. ];
  37. }
  38. }