estatesfunding/ef-api/models/admin.js

12 lines
246 B
JavaScript

import mongoose from "mongoose";
const adminSchema = new mongoose.Schema({
username: { type: String, required: true, unique: true },
password: { type: String, required: true }
});
export default mongoose.model("Admin", adminSchema);