Moved middleware/ & schemas/ into api/.
This commit is contained in:
		
							
								
								
									
										13
									
								
								api/schemas/Subscription.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								api/schemas/Subscription.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| const mongoose = require("mongoose"); | ||||
| const Schema = mongoose.Schema; | ||||
|  | ||||
| const Subscription = new Schema({ | ||||
|   endpoint: String, | ||||
|   expirationTime: Number, | ||||
|   keys: { | ||||
|     p256dh: String, | ||||
|     auth: String | ||||
|   } | ||||
| }); | ||||
|  | ||||
| module.exports = mongoose.model("Subscription", Subscription); | ||||
		Reference in New Issue
	
	Block a user