diff --git a/models/BoughtItem.js b/models/BoughtItem.js new file mode 100644 index 0000000..4534d6b --- /dev/null +++ b/models/BoughtItem.js @@ -0,0 +1,14 @@ +const mongoose = require('mongoose'); + +const BoughtItemSchema = new mongoose.Schema({ + user_id: { // The id of the user that bought the addon + type: mongoose.mongo.ObjectId, + required: true + }, + addon_id: { // The id of the addon the user bought + type: mongoose.mongo.ObjectId, + required: true + } +}); + +module.exports = mongoose.model('bought_items', BoughtItemSchema); \ No newline at end of file