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/FixCarSn.php

50 lines
897 B

<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "fix_car_sn".
*
* @property integer $id
* @property string $sn
* @property string $created_at
* @property string $updated_at
*/
class FixCarSn extends \common\models\Base
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'fix_car_sn';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['sn'], 'required'],
[['created_at', 'updated_at'], 'safe'],
[['sn'], 'string', 'max' => 18],
[['sn'], 'unique'],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'sn' => 'Sn',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}