akf-forum/models/Secret.js
2022-09-17 00:27:38 +03:00

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