...
|
...
|
@@ -36,7 +36,7 @@ class RoomRedbag extends \yii\db\ActiveRecord |
|
|
return [
|
|
|
[['room_id', 'coupon_id', 'type_id', 'stock', 'effect_time', 'invalid_time', 'create_time', 'update_time'], 'integer'],
|
|
|
[['coupon_name'], 'string', 'max' => 100],
|
|
|
[['room_id', 'coupon_id'], 'unique', 'targetAttribute' => ['room_id', 'coupon_id'], 'message' => 'The combination of 房间号 and 优惠券ID has already been taken.'],
|
|
|
[['room_id', 'coupon_id'], 'unique', 'targetAttribute' => ['room_id', 'coupon_id'], 'comboNotUnique' => '红包ID已存在'],
|
|
|
];
|
|
|
}
|
|
|
|
...
|
...
|
|