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 "{{%user_coupon_goods}}". |
|
9 |
* |
|
10 |
* @property int $id |
|
11 |
* @property int $mall_id 商城ID |
|
12 |
* @property int $user_coupon_id 优惠券ID |
|
13 |
* @property int $user_id 用户ID |
|
14 |
* @property int $goods_id 商品ID |
|
15 |
* @property int $is_delete 是否删除 0--不删除 1--删除 |
|
16 |
* @property string $created_at 创建时间 |
|
17 |
* @property string $updated_at 更新时间 |
|
18 |
* @property string $deleted_at 删除时间 |
|
19 |
*/ |
|
20 |
class UserCouponGoods extends ModelActiveRecord |
|
21 |
{ |
|
22 |
/** |
|
23 |
* {@inheritdoc} |
|
24 |
*/ |
|
25 |
public static function tableName() |
|
26 |
{ |
|
27 |
return '{{%user_coupon_goods}}'; |
|
28 |
} |
|
29 |
|
|
30 |
/** |
|
31 |
* {@inheritdoc} |
|
32 |
*/ |
|
33 |
public function rules() |
|
34 |
{ |
|
35 |
return [ |
|
36 |
[['mall_id', 'user_coupon_id', 'user_id', 'goods_id', 'is_delete'], 'integer'], |
|
37 |
[['goods_id', 'created_at', 'updated_at', 'deleted_at'], 'required'], |
|
38 |
[['created_at', 'updated_at', 'deleted_at'], 'safe'], |
|
39 |
]; |
|
40 |
} |
|
41 |
|
|
42 |
/** |
|
43 |
* {@inheritdoc} |
|
44 |
*/ |
|
45 |
public function attributeLabels() |
|
46 |
{ |
|
47 |
return [ |
|
48 |
'id' => 'ID', |
|
49 |
'mall_id' => 'Mall ID', |
|
50 |
'user_coupon_id' => 'User Coupon ID', |
|
51 |
'user_id' => 'User ID', |
|
52 |
'goods_id' => 'Goods ID', |
|
53 |
'is_delete' => 'Is Delete', |
|
54 |
'created_at' => 'Created At', |
|
55 |
'updated_at' => 'Updated At', |
|
56 |
'deleted_at' => 'Deleted At', |
|
57 |
]; |
|
58 |
} |
|
59 |
} |