mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-26 13:20:41 +03:00
Akif9748
ae83e014a0
The dublicate key error fixed, ids as string. classes removed. using mongoose's magic
12 lines
No EOL
230 B
JavaScript
12 lines
No EOL
230 B
JavaScript
const { Schema, model } = require("mongoose")
|
|
|
|
const schema = new Schema({
|
|
|
|
username: { type: String, unique: true },
|
|
password: String,
|
|
id: { type:String, unique: true }
|
|
|
|
|
|
});
|
|
|
|
module.exports = model('secret', schema); |