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.
 
 
 
 
simple-yewu/common/models/FixCarImg.php

48 lines
832 B

<?php
namespace common\models;
use Yii;
use yii\db\ActiveRecord;
/**
* This is the model class for table "fix_car_img".
*
* @property integer $id
* @property string $name
*/
class FixCarImg extends \common\models\Base
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'fix_car_img';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['name','fix_id'], 'required'],
[['name'], 'string', 'max' => 50],
[['created_at','updated_at'],'save'],
[['fix_id'], 'integer'],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'name' => 'Name',
'fix_id' => 'Fix ID'
];
}
}