This repository has been archived on 2025-12-25. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
qmi-cloud/qmi-cloud-common/models/TrainingStudent.js
Manuel Romero e2d32d954e submit form
2023-05-11 10:44:38 +02:00

22 lines
404 B
JavaScript

const mongoose = require('mongoose');
const schema = new mongoose.Schema({
created: {
type: Date,
default: Date.now
},
email: {
type: String
},
session: {
type: mongoose.Types.ObjectId, ref: 'TrainingSession'
},
status: {
type: String,
default: 'pending'
}
});
module.exports = mongoose.model('TrainingStudent', schema);