mirror of
https://github.com/SrIzan10/vinci.git
synced 2026-06-06 01:07:00 +00:00
9 lines
316 B
JavaScript
9 lines
316 B
JavaScript
import mongoose from 'mongoose'
|
|
const schema = new mongoose.Schema({
|
|
id: {type: String, required: true},
|
|
user: {type: String, required: true},
|
|
suggestionid: {type: String, required: true},
|
|
suggestion: {type: String, required: true},
|
|
});
|
|
const db = mongoose.model('padyama', schema, 'padyama');
|
|
export default db |