TopicFavorite.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. /**
  10. * This is the model class for table "{{%topic_favorite}}".
  11. *
  12. * @property integer $id
  13. * @property integer $store_id
  14. * @property integer $user_id
  15. * @property integer $topic_id
  16. * @property integer $addtime
  17. * @property integer $is_delete
  18. */
  19. class TopicFavorite extends \yii\db\ActiveRecord
  20. {
  21. /**
  22. * @inheritdoc
  23. */
  24. public static function tableName()
  25. {
  26. return '{{%topic_favorite}}';
  27. }
  28. /**
  29. * @inheritdoc
  30. */
  31. public function rules()
  32. {
  33. return [
  34. [['store_id', 'user_id', 'topic_id', 'addtime', 'is_delete'], 'integer'],
  35. ];
  36. }
  37. /**
  38. * @inheritdoc
  39. */
  40. public function attributeLabels()
  41. {
  42. return [
  43. 'id' => 'ID',
  44. 'store_id' => 'Store ID',
  45. 'user_id' => 'User ID',
  46. 'topic_id' => 'Topic ID',
  47. 'addtime' => 'Addtime',
  48. 'is_delete' => 'Is Delete',
  49. ];
  50. }
  51. }