7fife-backend/models/Form.model.js

27 lines
431 B
JavaScript
Raw Normal View History

2024-03-07 13:01:44 +00:00
const mongoose = require('mongoose');
const formSchema = new mongoose.Schema(
{
userName : {
type : String
},
message : {
type : String,
require : true
},
reply : {
type : String,
},
subject : {
type : String,
},
email : {
type : String,
required : true
}
},{timestamps:true});
module.exports = mongoose.model('Form',formSchema);