Haris Razis
4 years ago
4 changed files with 2 additions and 15 deletions
@ -1,10 +0,0 @@ |
|||||
const mongoose = require('mongoose'); |
|
||||
const {Schema} = mongoose; |
|
||||
|
|
||||
const AthleteSchema = new Schema({ |
|
||||
id: String, |
|
||||
name: String, |
|
||||
_trainer: {type: Schema.Types.ObjectId, ref: 'User'} |
|
||||
}); |
|
||||
|
|
||||
mongoose.model('Athlete', AthleteSchema); |
|
Loading…
Reference in new issue