cxfoot/models/GoodsCat.php
2023-10-27 14:25:12 +08:00

49 lines
989 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "{{%goods_cat}}".
*
* @property int $id ID
* @property int $goods_hub_id 商品库ID
* @property int $cat_id 分类ID
* @property int $is_delete 是否删除0=否1=是
*/
class GoodsCat extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return '{{%goods_cat}}';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['goods_hub_id', 'cat_id'], 'required'],
[['goods_hub_id', 'cat_id', 'is_delete'], 'integer'],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'goods_hub_id' => '商品库ID',
'cat_id' => '分类ID',
'is_delete' => '是否删除0=否1=是',
];
}
}