| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use Yii;
- /**
- * This is the model class for table "{{%topic_type}}".
- *
- * @property int $id
- * @property string|null $name
- * @property int|null $sort
- * @property int|null $is_delete
- * @property int|null $store_id
- * @property int|null $is_show 是否显示(0/不显示,1、显示)
- */
- class TopicType extends \yii\db\ActiveRecord
- {
- const IS_DELETE_YES = 1;//已删除
- const IS_DELETE_NO = 0;//未删除
- const IS_SHOW_YES = 1;//前台显示
- const IS_SHOW_NO = 0;//前台不显示
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%topic_type}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['sort', 'is_delete', 'store_id', 'is_show'], 'integer'],
- [['name'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'name' => 'Name',
- 'sort' => 'Sort',
- 'is_delete' => 'Is Delete',
- 'store_id' => 'Store ID',
- 'is_show' => 'Is Show',
- ];
- }
- }
|