summaryrefslogtreecommitdiff
path: root/server/lib/schemas/Subscription.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-01-28 11:49:10 -0500
committerJules Laplace <jules@okfoc.us>2015-01-28 11:49:10 -0500
commite3ff5315f7ea7421431658077253c4d71f0f5731 (patch)
tree62a06e26c77ca9454cc0535f39da698319713eac /server/lib/schemas/Subscription.js
parent79fee7f24d43873fc35295eab1d2a089d373e133 (diff)
parent3059c3203d2cec4e2e745be8c21c6d3fbddb0c14 (diff)
Merge branch 'subscriptions' of github.com:okfocus/vvalls into subscriptions
Diffstat (limited to 'server/lib/schemas/Subscription.js')
-rw-r--r--server/lib/schemas/Subscription.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/server/lib/schemas/Subscription.js b/server/lib/schemas/Subscription.js
index 8ec557d..b766555 100644
--- a/server/lib/schemas/Subscription.js
+++ b/server/lib/schemas/Subscription.js
@@ -8,13 +8,14 @@ var mongoose = require('mongoose'),
var SubscriptionSchema = new mongoose.Schema({
user_id: { type: mongoose.Schema.ObjectId, index: true },
-
- monthly_total: { type: Number },
- yearly_total: { type: Number },
-
- plans: [{
- tier: { type: String },
- monthly: { type: Boolean },
+
+ plan_type: { type: String, default: "free" },
+ plan_period: { type: String, default: "monthly" },
+
+ subscription_uuid: { type: String },
+ subscription_add_ons: [{
+ name: { type: String },
+ quantity: { type: Number },
}],
history: [{