EvaluateStat.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. namespace addons\TinyShop\common\models\product;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addon_tiny_shop_product_evaluate_stat}}".
  6. *
  7. * @property int $id
  8. * @property int $merchant_id 商户id
  9. * @property int|null $product_id 商品ID
  10. * @property int|null $cover_num 有图数量
  11. * @property int|null $video_num 视频数量
  12. * @property int|null $again_num 追加数量
  13. * @property int|null $good_num 好评数量
  14. * @property int|null $ordinary_num 中评数量
  15. * @property int|null $negative_num 差评数量
  16. * @property int|null $total_num 总数量
  17. * @property string|null $tags 其他标签
  18. * @property int|null $status 状态
  19. */
  20. class EvaluateStat extends \yii\db\ActiveRecord
  21. {
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public static function tableName()
  26. {
  27. return '{{%addon_tiny_shop_product_evaluate_stat}}';
  28. }
  29. /**
  30. * {@inheritdoc}
  31. */
  32. public function rules()
  33. {
  34. return [
  35. [['merchant_id', 'product_id', 'cover_num', 'video_num', 'again_num', 'good_num', 'ordinary_num', 'negative_num', 'total_num', 'status'], 'integer'],
  36. [['tags'], 'safe'],
  37. ];
  38. }
  39. /**
  40. * {@inheritdoc}
  41. */
  42. public function attributeLabels()
  43. {
  44. return [
  45. 'id' => 'ID',
  46. 'merchant_id' => '商户id',
  47. 'product_id' => '商品ID',
  48. 'cover_num' => '有图数量',
  49. 'video_num' => '视频数量',
  50. 'again_num' => '追加数量',
  51. 'good_num' => '好评数量',
  52. 'ordinary_num' => '中评数量',
  53. 'negative_num' => '差评数量',
  54. 'total_num' => '总数量',
  55. 'tags' => '其他标签',
  56. 'status' => '状态',
  57. ];
  58. }
  59. }
粤ICP备19079148号