Files
xk-api-yii/common/modelsgii/AttachmentGroup.php
2024-09-19 11:32:39 +08:00

62 lines
1.4 KiB
PHP

<?php
namespace common\modelsgii;
use Yii;
/**
* This is the model class for table "{{%attachment_group}}".
*
* @property int $id
* @property int $mall_id
* @property int $mch_id
* @property string $name
* @property int $is_delete
* @property int|null $created_at
* @property int|null $updated_at
* @property int|null $deleted_at
* @property int $is_recycle 是否加入回收站 0.否|1.是
* @property int $type 0 图片 1商品
*/
class AttachmentGroup extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return '{{%attachment_group}}';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['mall_id', 'name'], 'required'],
[['mall_id', 'mch_id', 'is_delete', 'created_at', 'updated_at', 'deleted_at', 'is_recycle', 'type'], 'integer'],
[['name'], 'string', 'max' => 64],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'mall_id' => 'Mall ID',
'mch_id' => 'Mch ID',
'name' => 'Name',
'is_delete' => 'Is Delete',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
'deleted_at' => 'Deleted At',
'is_recycle' => '是否加入回收站 0.否|1.是',
'type' => '0 图片 1商品',
];
}
}