1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "{{%custom}}".
*
* @property int $id
* @property int $uid
* @property string $name
* @property string $mobile
* @property string $model
* @property string $color
* @property string $remark 备注
* @property int $created_at
* @property int $updated_at
*/
class Custom extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static function tableName()
{
return '{{%custom}}';
}
/**
* @inheritdoc
*/
public function rules()
{
return [
[['uid', 'name', 'mobile', 'created_at',], 'required'],
[['uid', 'created_at', 'updated_at'], 'integer'],
[['remark', 'model', 'color'], 'string'],
[['name'], 'string', 'max' => 255],
[['mobile'], 'string', 'max' => 11],
];
}
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => '序号',
'uid' => '用户id',
'name' => '姓名',
'mobile' => '手机号',
'remark' => '备注',
'model' => '车型',
'color' => '颜色',
'created_at' => '申请时间',
'updated_at' => '审核时间',
];
}
}