mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-12-22 23:59:08 +03:00
10 lines
No EOL
308 B
JavaScript
10 lines
No EOL
308 B
JavaScript
const mongoose = require("mongoose")
|
|
const { limits } = require("../config.json");
|
|
|
|
const schema = new mongoose.Schema({
|
|
username: { type: String, unique: true, maxlength: limits.names },
|
|
password: String,
|
|
id: { type: String, unique: true }
|
|
});
|
|
|
|
module.exports = mongoose.model('secret', schema); |