| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?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_list}}".
- *
- * @property int $id
- * @property int $store_id
- * @property int $user_id 用户id
- * @property string $title 标题
- * @property int $cat_id 分类id
- * @property string $cover_pic 封面图
- * @property string $pic_list 图片
- * @property string $video_url 视频地址
- * @property string $content 内容
- * @property int $type 类型
- * @property string $goods_id 商品
- * @property int $is_show 是否展示
- * @property int $is_delete 是否删除
- * @property int $status 状态
- * @property int $is_top 是否是置顶
- * @property int $user_delete 用户删除
- * @property string $refuse_desc 拒绝原因
- * @property string $longitude
- * @property string $latitude
- * @property string $address
- * @property int $sort 排序
- * @property string $douyin_url
- * @property int created_at 创建时间
- * @property int updated_at 更新时间
- * @property int views
- */
- class VideoGoodsList extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%video_goods_list}}';
- }
- 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', 'is_top', 'user_id', 'is_delete', 'status', 'created_at', 'updated_at', 'cat_id', 'is_show', 'type', 'user_delete', 'sort','views'], 'integer'],
- [['title', 'cover_pic', 'pic_list', 'video_url', 'content', 'refuse_desc', 'goods_id', 'longitude', 'latitude', 'address', 'douyin_url'], 'string']
- ];
- }
- }
|