File tree Expand file tree Collapse file tree 5 files changed +3463
-0
lines changed Expand file tree Collapse file tree 5 files changed +3463
-0
lines changed Original file line number Diff line number Diff line change
1
+ node_modules /*
Original file line number Diff line number Diff line change
1
+
2
+ var mongoose = require ( 'mongoose' ) ;
3
+
4
+ var Schema = mongoose . Schema
5
+
6
+ let Ques = new Schema ( {
7
+ Uid :{ type :String } ,
8
+ Que :{ type :String } ,
9
+ Opt1 :{ type :String } ,
10
+ Opt2 :{ type :String } ,
11
+ Opt3 :{ type :String } ,
12
+ Opt4 :{ type :String } ,
13
+ Correct :{ type :String } ,
14
+ Testno :{ type :String }
15
+ } )
16
+
17
+ var que = mongoose . model ( "que" , Ques )
18
+
19
+ let Users = new Schema ( {
20
+ Name :{ type :String } ,
21
+ Email :{ type :String } ,
22
+ Password :{ type :String } ,
23
+ Phone :{ type :String } ,
24
+ } )
25
+
26
+ var user = mongoose . model ( "user" , Users ) ;
27
+
28
+
29
+ let Admins = new Schema ( {
30
+ Name :{ type :String } ,
31
+ Email :{ type :String } ,
32
+ Password :{ type :String } ,
33
+ } )
34
+
35
+ var admin = mongoose . model ( "admin" , Admins ) ;
36
+
37
+
38
+
39
+ var Records = new Schema ( {
40
+ TestNo :{ type :String } ,
41
+ Name :{ type :String } ,
42
+ Email :{ type :String } ,
43
+ Maxmarks :{ type :String } ,
44
+ Marks :{ type :String } ,
45
+ Percentage :{ type :String } ,
46
+ Status :{ type :String } ,
47
+ Date :{ type :String }
48
+ } )
49
+
50
+ var record = mongoose . model ( "record" , Records ) ;
51
+ // let Checkout = new Schema({
52
+ // Name:{type:String},
53
+ // Desc:{type:String},
54
+ // Price:{type:Number},
55
+ // CartId:{
56
+ // type: Schema.Types.ObjectId,
57
+ // ref: "cart"
58
+ // },
59
+ // PId:{
60
+ // type:Schema.Types.ObjectId,
61
+ // ref:"cart"
62
+ // },
63
+ // Quantity:{type:Number},
64
+ // Email:{type:String},
65
+ // userName:{type:String},
66
+ // TotalCost:{type:Number},
67
+ // Date:{type:Date}
68
+ // })
69
+
70
+ // var checkout = mongoose.model("checkout",Checkout);
71
+
72
+ module . exports = {
73
+ que,
74
+ user,
75
+ admin,
76
+ record
77
+ }
You can’t perform that action at this time.
0 commit comments