Add files via upload
This commit is contained in:
22
api/models/commendation.js
Normal file
22
api/models/commendation.js
Normal file
@@ -0,0 +1,22 @@
|
||||
const mongoose = require('mongoose');
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
const CommendationsSchema = new Schema({
|
||||
commenderId: {
|
||||
type: String,
|
||||
required: true,
|
||||
unique: false,
|
||||
},
|
||||
commendedId:{
|
||||
type: String,
|
||||
required: true,
|
||||
unique: false
|
||||
},
|
||||
score: {
|
||||
type: Number,
|
||||
required: true,
|
||||
unique: false,
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = mongoose.model("Commendations", CommendationsSchema);
|
||||
Reference in New Issue
Block a user