Skip to content

Commit

Permalink
Create preference.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bsu3338 committed Apr 12, 2024
1 parent b91cba9 commit 41565b6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions api/models/schema/preference.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const mongoose = require('mongoose');

const preferenceSchema = mongoose.Schema({
userId: {
type: mongoose.Schema.Types.ObjectId,
ref: 'User',
required: true,
},
name: {
type: String,
required: true,
},
value: {
type: String,
required: true,
},
});

module.exports = preferenceSchema;

0 comments on commit 41565b6

Please sign in to comment.