VideoGoodsCommentLike.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use yii\db\ActiveRecord;
  9. use yii\behaviors\TimestampBehavior;
  10. use Yii;
  11. /**
  12. * This is the model class for table "{{%video_goods_comment_like}}".
  13. *
  14. * @property int $id
  15. * @property int $store_id
  16. * @property int $comment_id 评论id
  17. * @property int $user_id 用户id
  18. * @property int $is_cancel 取消
  19. * @property int created_at 创建时间
  20. * @property int updated_at 更新时间
  21. */
  22. class VideoGoodsCommentLike extends \yii\db\ActiveRecord
  23. {
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public static function tableName()
  28. {
  29. return '{{%video_goods_comment_like}}';
  30. }
  31. public function behaviors()
  32. {
  33. return [
  34. [
  35. 'class' => TimestampBehavior::class,
  36. 'attributes' => [
  37. ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'],
  38. ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at'
  39. ]
  40. ]
  41. ];
  42. }
  43. /**
  44. * {@inheritdoc}
  45. */
  46. public function rules()
  47. {
  48. return [
  49. [['store_id', 'comment_id', 'user_id', 'is_cancel', 'created_at', 'updated_at'], 'integer'],
  50. ];
  51. }
  52. }