fistcommit

This commit is contained in:
Kicap committed 2025-03-21 04:09:18 +08:00
commit 580ccbfd0d
1393 files changed
+534360

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
import mongoose from 'mongoose';
//
const adminSchema = new mongoose.Schema({
username: {
type: String,
required: true,
unique: true
},
password: {
type: String,
required: true
},
email: {
type: String,
required: true,
unique: true
},
createdAt: {
type: Date,
default: Date.now
}
});
// this is the model for the admin
const AdminModel = mongoose.model('Admin', adminSchema);
export default AdminModel;