2022-04-06 21:14:46 +03:00
|
|
|
const { Schema, model } = require("mongoose")
|
|
|
|
|
2022-08-09 19:16:34 +03:00
|
|
|
const schema = new Schema({
|
2022-04-06 21:14:46 +03:00
|
|
|
|
|
|
|
username: { type: String, unique: true },
|
|
|
|
password: String,
|
2022-08-09 19:16:34 +03:00
|
|
|
id: { type:String, unique: true }
|
2022-04-06 21:14:46 +03:00
|
|
|
|
|
|
|
|
2022-08-09 19:16:34 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = model('secret', schema);
|