final commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import mongoose from "mongoose";
|
||||
const {Schema} = mongoose;
|
||||
|
||||
const UsersSchema = new Schema({
|
||||
fullName: {
|
||||
type: String,
|
||||
},
|
||||
email: {
|
||||
type: String,
|
||||
unique: true,
|
||||
},
|
||||
phone: {
|
||||
type: String,
|
||||
},
|
||||
}, {timestamps: true});
|
||||
|
||||
const Users = mongoose.model('users', UsersSchema);
|
||||
export default Users;
|
||||
Reference in New Issue
Block a user