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 "{{%ecard_order}}". |
|
9 |
* |
|
10 |
* @property int $id |
|
11 |
* @property int $mall_id |
|
12 |
* @property int $ecard_id |
|
13 |
* @property string $value |
|
14 |
* @property int $order_id |
|
15 |
* @property int $order_detail_id |
|
16 |
* @property int $is_delete |
|
17 |
* @property string $token 加密字符串 |
|
18 |
* @property int $ecard_options_id |
|
19 |
* @property int $user_id 用户id |
|
20 |
* @property string $order_token 订单token |
|
21 |
*/ |
|
22 |
class EcardOrder extends \app\models\ModelActiveRecord |
|
23 |
{ |
|
24 |
/** |
|
25 |
* {@inheritdoc} |
|
26 |
*/ |
|
27 |
public static function tableName() |
|
28 |
{ |
|
29 |
return '{{%ecard_order}}'; |
|
30 |
} |
|
31 |
|
|
32 |
/** |
|
33 |
* {@inheritdoc} |
|
34 |
*/ |
|
35 |
public function rules() |
|
36 |
{ |
|
37 |
return [ |
|
38 |
[['mall_id', 'ecard_id', 'value', 'order_id', 'order_detail_id', 'is_delete', 'ecard_options_id'], 'required'], |
|
39 |
[['mall_id', 'ecard_id', 'order_id', 'order_detail_id', 'is_delete', 'ecard_options_id', 'user_id'], 'integer'], |
|
40 |
[['value'], 'string'], |
|
41 |
[['token', 'order_token'], 'string', 'max' => 255], |
|
42 |
]; |
|
43 |
} |
|
44 |
|
|
45 |
/** |
|
46 |
* {@inheritdoc} |
|
47 |
*/ |
|
48 |
public function attributeLabels() |
|
49 |
{ |
|
50 |
return [ |
|
51 |
'id' => 'ID', |
|
52 |
'mall_id' => 'Mall ID', |
|
53 |
'ecard_id' => 'Ecard ID', |
|
54 |
'value' => 'Value', |
|
55 |
'order_id' => 'Order ID', |
|
56 |
'order_detail_id' => 'Order Detail ID', |
|
57 |
'is_delete' => 'Is Delete', |
|
58 |
'token' => '加密字符串', |
|
59 |
'ecard_options_id' => 'Ecard Options ID', |
|
60 |
'user_id' => '用户id', |
|
61 |
'order_token' => '订单token', |
|
62 |
]; |
|
63 |
} |
|
64 |
} |