commit | author | age
|
90c639
|
1 |
<?php |
Z |
2 |
|
|
3 |
namespace app\models; |
|
4 |
|
|
5 |
/** |
|
6 |
* This is the model class for table "{{%coupon_mall_relation}}". |
|
7 |
* |
|
8 |
* @property int $id |
|
9 |
* @property int $mall_id |
|
10 |
* @property int $user_coupon_id |
|
11 |
* @property int $is_delete 删除 |
|
12 |
* @property int $order_id |
|
13 |
* @property int $type |
|
14 |
*/ |
|
15 |
class CouponMallRelation extends ModelActiveRecord |
|
16 |
{ |
|
17 |
/** |
|
18 |
* {@inheritdoc} |
|
19 |
*/ |
|
20 |
public static function tableName() |
|
21 |
{ |
|
22 |
return '{{%coupon_mall_relation}}'; |
|
23 |
} |
|
24 |
|
|
25 |
/** |
|
26 |
* {@inheritdoc} |
|
27 |
*/ |
|
28 |
public function rules() |
|
29 |
{ |
|
30 |
return [ |
|
31 |
[['mall_id', 'user_coupon_id'], 'required'], |
|
32 |
[['mall_id', 'user_coupon_id', 'is_delete', 'order_id'], 'integer'], |
|
33 |
[['type'], 'string', 'max' => 255], |
|
34 |
]; |
|
35 |
} |
|
36 |
|
|
37 |
/** |
|
38 |
* {@inheritdoc} |
|
39 |
*/ |
|
40 |
public function attributeLabels() |
|
41 |
{ |
|
42 |
return [ |
|
43 |
'id' => 'ID', |
|
44 |
'mall_id' => 'Mall ID', |
|
45 |
'user_coupon_id' => 'User Coupon ID', |
|
46 |
'is_delete' => '删除', |
|
47 |
'order_id' => '订单id', |
|
48 |
'type' => '类型', |
|
49 |
]; |
|
50 |
} |
|
51 |
} |