| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- use Yii;
- /**
- * This is the model class for table "{{%video_goods_comment}}".
- *
- * @property int $id
- * @property int $store_id
- * @property int $vl_id 视频id
- * @property int reply_id 回复用户id
- * @property string reply_name 回复用户名称
- * @property int $user_id 用户id
- * @property int $is_delete 是否删除
- * @property string $comment 评论内容
- * @property int $status 审核状态
- * @property int $parent_id 父级id
- * @property int $top_parent_id 顶级id
- * @property int created_at 创建时间
- * @property int updated_at 更新时间
- */
- class VideoGoodsComment extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%video_goods_comment}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at'
- ]
- ]
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['store_id', 'vl_id', 'is_delete', 'reply_id', 'user_id', 'updated_at', 'created_at', 'status', 'parent_id', 'top_parent_id'], 'integer'],
- [['reply_name', 'comment'], 'string'],
- ];
- }
- }
|