mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-01 03:25:04 +03:00
9 lines
No EOL
252 B
JavaScript
9 lines
No EOL
252 B
JavaScript
const mongoose = require("mongoose")
|
|
|
|
const schema = new mongoose.Schema({
|
|
username: { type: String, unique: true, maxlength: 25 },
|
|
password: String,
|
|
id: { type: String, unique: true }
|
|
});
|
|
|
|
module.exports = mongoose.model('secret', schema); |