| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\models;
- use Yii;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%live_cat}}".
- *
- * @property $id int(11) NOT NULL AUTO_INCREMENT,
- * @property $store_id int(11) DEFAULT NULL,
- * @property $name varchar(255) NOT NULL COMMENT '直播类型名称',
- * @property $pic_url varchar(255) DEFAULT NULL COMMENT '分类图片',
- * @property $is_show tinyint(1) NOT NULL DEFAULT 1 ,
- * @property $is_delete tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否删除' ,
- * @property $sort int(11) NOT NULL DEFAULT 0 ,
- * @property $created_at int(11) NULL DEFAULT 0 ,
- */
- class LiveCat extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%live_cat}}';
- }
- public function behaviors()
- {
- return [
- [
- // 自动更新创建和更新时间
- 'class' => TimestampBehavior::class,
- 'updatedAtAttribute' => false,
- ]
- ];
- }
- }
|