akf-forum/models/Secret.js

9 lines
252 B
JavaScript
Raw Normal View History

2022-08-29 16:16:44 +03:00
const mongoose = require("mongoose")
2022-04-06 21:14:46 +03:00
2022-08-29 16:16:44 +03:00
const schema = new mongoose.Schema({
2022-09-17 00:27:38 +03:00
username: { type: String, unique: true, maxlength: 25 },
2022-09-16 22:26:03 +03:00
password: String,
2022-08-29 16:16:44 +03:00
id: { type: String, unique: true }
});
2022-08-29 16:16:44 +03:00
module.exports = mongoose.model('secret', schema);