| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- namespace addons\QiShangTong\common\models;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_qi_shang_tong_cate".
- *
- * @property int $id ID
- * @property int $mall_id 商城ID
- * @property int $created_at 创建时间
- * @property int $updated_at 更新时间
- * @property int $status 状态
- * @property string $cate_name 类目名称
- * @property int $level 类目级别
- * @property int $parent_id 上级ID
- * @property int $cate_id 类目ID
- * @property int $third_cate_id 第三方类目ID
- * @property string $icon 图标
- * @property string $select_icon 选中图标
- */
- class QiShangTongCate extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_qi_shang_tong_cate';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'created_at', 'updated_at', 'status', 'level', 'parent_id', 'cate_id', 'third_cate_id'], 'integer'],
- [['cate_name'], 'string', 'max' => 50],
- [['icon', 'select_icon'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => 'Mall ID',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- 'status' => 'Status',
- 'cate_name' => 'Cate Name',
- 'level' => 'Level',
- 'parent_id' => 'Parent ID',
- 'cate_id' => 'Cate ID',
- 'third_cate_id' => 'Third Cate ID',
- 'icon' => 'Icon',
- 'select_icon' => 'Select Icon',
- ];
- }
- }
|