commit | author | age
|
90c639
|
1 |
<?php |
Z |
2 |
|
|
3 |
namespace app\models; |
|
4 |
|
|
5 |
use Yii; |
|
6 |
|
|
7 |
/** |
|
8 |
* This is the model class for table "{{%formid}}". |
|
9 |
* |
|
10 |
* @property int $id |
|
11 |
* @property int $user_id |
|
12 |
* @property string $form_id |
|
13 |
* @property string $created_at |
|
14 |
* @property string $updated_at |
|
15 |
* @property int $remains |
|
16 |
* @property string $expired_at |
|
17 |
*/ |
|
18 |
class Formid extends ModelActiveRecord |
|
19 |
{ |
|
20 |
/** |
|
21 |
* {@inheritdoc} |
|
22 |
*/ |
|
23 |
public static function tableName() |
|
24 |
{ |
|
25 |
return '{{%formid}}'; |
|
26 |
} |
|
27 |
|
|
28 |
/** |
|
29 |
* {@inheritdoc} |
|
30 |
*/ |
|
31 |
public function rules() |
|
32 |
{ |
|
33 |
return [ |
|
34 |
[['user_id', 'form_id', 'remains', 'expired_at'], 'required'], |
|
35 |
[['user_id', 'remains'], 'integer'], |
|
36 |
[['created_at', 'updated_at', 'expired_at'], 'safe'], |
|
37 |
[['form_id'], 'string', 'max' => 1000], |
|
38 |
]; |
|
39 |
} |
|
40 |
|
|
41 |
/** |
|
42 |
* {@inheritdoc} |
|
43 |
*/ |
|
44 |
public function attributeLabels() |
|
45 |
{ |
|
46 |
return [ |
|
47 |
'id' => 'ID', |
|
48 |
'user_id' => 'User ID', |
|
49 |
'form_id' => 'Form ID', |
|
50 |
'created_at' => 'Created At', |
|
51 |
'updated_at' => 'Updated At', |
|
52 |
'remains' => 'Remains', |
|
53 |
'expired_at' => 'Expired At', |
|
54 |
]; |
|
55 |
} |
|
56 |
} |