Skip to content

Commit

Permalink
issue fix in large devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Basir Khan committed Jul 19, 2023
1 parent bcafb9a commit 2f5109a
Show file tree
Hide file tree
Showing 11 changed files with 3,063 additions and 162 deletions.
11 changes: 11 additions & 0 deletions models/User.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import mongoose from "mongoose";
const UserSchema=new mongoose.Schema({
name:{type:String,required:true},
email:{type:String,required:true,unique:true},
phone:{type:Number,required:true,unique:true},
password:{type:String,required:true},
role:{type:String,default:'user'},
bio:{type:String,default:''},
},{timestamps:true})
mongoose.models={}
export default mongoose.model('User',UserSchema);
Loading

0 comments on commit 2f5109a

Please sign in to comment.