Created
October 17, 2020 08:55
-
-
Save miladr0/50c33a66b5895238e25d8575e4c5e33e to your computer and use it in GitHub Desktop.
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
import mongoose from 'mongoose'; | |
/** | |
* HitApi Schema | |
* @private | |
*/ | |
const hitApiSchema = new mongoose.Schema({ | |
api: { | |
type: String, | |
}, | |
count: { type: Number, default: 0 }, | |
}, { timestamps: true }); | |
const HitApi = mongoose.model('HitApi', hitApiSchema); | |
export default HitApi; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment