Add files via upload
This commit is contained in:
23
api/models/matching.js
Normal file
23
api/models/matching.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const mongoose = require('mongoose');
|
||||
const Schema = mongoose.Schema;
|
||||
|
||||
const MatchingSchema = new Schema({
|
||||
firstUser: {
|
||||
type: String,
|
||||
required: true,
|
||||
unique: false
|
||||
},
|
||||
secondUser: {
|
||||
type: String,
|
||||
required: true,
|
||||
unique: false
|
||||
},
|
||||
timestamp : {
|
||||
type: Date,
|
||||
required: false,
|
||||
unique: false,
|
||||
default: Date.now
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = mongoose.model("Matching", MatchingSchema);
|
||||
Reference in New Issue
Block a user