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

64 lines
1.4 KiB

5 years ago
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "car_log_t".
*
* @property integer $id
* @property integer $car_id
* @property string $op_man
* @property integer $op_time
* @property string $group_name
* @property integer $type
* @property string $remark
* @property string $info
* @property string $created_at
* @property string $updated_at
*/
class CarLogT extends \common\models\Base
{
/**
* @inheritdoc
*/
public static function tableName()
{
return 'car_log_t';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['car_id', 'op_man', 'op_time'], 'required'],
[['car_id', 'op_time','type'], 'integer'],
[['created_at', 'updated_at'], 'safe'],
[['op_man'], 'string', 'max' => 50],
[['group_name', 'remark','info'], 'string', 'max' => 100],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'car_id' => 'Car ID',
'op_man' => 'Op Man',
'op_time' => 'Op Time',
'group_name' => 'Group Name',
'type' => 'Type',
'remark' => 'Remark',
'info' => 'Info',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}