| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?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_focus}}".
- *
- * @property int $id
- * @property int $store_id
- * @property int $focus_user_id 关注者用户id
- * @property int $user_id 用户id
- * @property int $is_delete 是否删除
- * @property int $is_cancel 是否取消
- * @property int created_at 创建时间
- * @property int updated_at 更新时间
- */
- class VideoGoodsFocus extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%video_goods_focus}}';
- }
- 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', 'focus_user_id', 'is_delete', 'is_cancel', 'user_id', 'created_at', 'updated_at'], 'integer'],
- ];
- }
- }
|