You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
933 B
50 lines
933 B
5 years ago
|
<?php
|
||
|
|
||
|
namespace app\models;
|
||
|
|
||
|
use Yii;
|
||
|
|
||
|
/**
|
||
|
* This is the model class for table "{{%ms_goods_pic}}".
|
||
|
*
|
||
|
* @property integer $id
|
||
|
* @property integer $goods_id
|
||
|
* @property string $pic_url
|
||
|
* @property integer $is_delete
|
||
|
*/
|
||
|
class MsGoodsPic extends \yii\db\ActiveRecord
|
||
|
{
|
||
|
/**
|
||
|
* @inheritdoc
|
||
|
*/
|
||
|
public static function tableName()
|
||
|
{
|
||
|
return '{{%ms_goods_pic}}';
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @inheritdoc
|
||
|
*/
|
||
|
public function rules()
|
||
|
{
|
||
|
return [
|
||
|
[['goods_id', 'is_delete'], 'integer'],
|
||
|
[['pic_url'], 'required'],
|
||
|
[['pic_url'], 'string'],
|
||
|
];
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @inheritdoc
|
||
|
*/
|
||
|
public function attributeLabels()
|
||
|
{
|
||
|
return [
|
||
|
'id' => 'ID',
|
||
|
'goods_id' => 'Goods ID',
|
||
|
'pic_url' => 'Pic Url',
|
||
|
'is_delete' => 'Is Delete',
|
||
|
];
|
||
|
}
|
||
|
}
|