UserCollect.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 "{{%user_collect}}".
  11. *
  12. * @property int $id
  13. * @property string $mobile 手机号
  14. * @property int $collect_id 收藏id
  15. * @property int $type 收藏类型
  16. * @property int $is_delete
  17. * @property int $created_at
  18. * @property int $updated_at
  19. */
  20. class UserCollect extends \yii\db\ActiveRecord
  21. {
  22. const TYPE_STORE = 0; // 店铺
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public static function tableName()
  27. {
  28. return '{{%user_collect}}';
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function rules()
  34. {
  35. return [
  36. [['mobile', 'collect_id', 'type', 'is_delete'], 'integer'],
  37. [['mobile'], 'string']
  38. ];
  39. }
  40. /**
  41. * {@inheritdoc}
  42. */
  43. public function attributeLabels()
  44. {
  45. return [
  46. 'id' => 'ID',
  47. 'mobile' => '手机号',
  48. 'collect_id' => '收藏id',
  49. 'type' => '类型:默认:0(店铺)',
  50. 'is_delete' => '是否删除',
  51. 'created_at' => '创建时间',
  52. 'updated_at' => '更新时间'
  53. ];
  54. }
  55. }