akf-forum/models/Secret.js
2022-09-17 20:25:19 +03:00

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);