Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
server side commit
- Loading branch information
Joysy-Joji
authored and
Joysy-Joji
committed
Nov 1, 2022
0 parents
commit bc7bb0363d670a25c5edb8f17776485a0867b656
Showing
13 changed files
with
1,642 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.env | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"git.ignoreLimitWarning": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const mongoose = require('mongoose'); | ||
const addclubSchema=new mongoose.Schema({ | ||
name:{ | ||
type:String, | ||
required:true | ||
}, | ||
email:{ | ||
type:String, | ||
required:true | ||
}, | ||
photo:{ | ||
type:String | ||
}, | ||
location:{ | ||
type:String, | ||
required:true | ||
}, | ||
|
||
type:{ | ||
type:String, | ||
required:true | ||
}, | ||
president_mail:{ | ||
type:String, | ||
required:true | ||
} | ||
}) | ||
module.exports=mongoose.model('club',addclubSchema) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const mongoose = require('mongoose') | ||
const eventSchema = new mongoose.Schema({ | ||
eventname:{ | ||
type:String, | ||
required:true | ||
}, | ||
clubname:{ | ||
type:String, | ||
required:true | ||
}, | ||
|
||
description:{ | ||
type:String, | ||
required:true | ||
}, | ||
image:{ | ||
type:String | ||
}, | ||
location:{ | ||
type:String, | ||
required:true | ||
}, | ||
time:{ | ||
type:String, | ||
required:true | ||
}, | ||
|
||
}) | ||
module.exports=mongoose.model('event',eventSchema) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
const mongoose=require('mongoose'); | ||
const userSchema=new mongoose.Schema({ | ||
|
||
email:{ | ||
type:String, | ||
required:true | ||
|
||
|
||
}, | ||
student_id:{ | ||
type:String, | ||
required:true | ||
}, | ||
name:{ | ||
type:String, | ||
required:true | ||
}, | ||
password:{ | ||
type:String, | ||
required:true | ||
|
||
|
||
}, | ||
type:{ | ||
type:String, | ||
default:"student" | ||
} | ||
}) | ||
module.exports=mongoose.model('user',userSchema) | ||
|
Oops, something went wrong.