Skip to content

Instantly share code, notes, and snippets.

@miladr0
Created October 17, 2020 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miladr0/50c33a66b5895238e25d8575e4c5e33e to your computer and use it in GitHub Desktop.
Save miladr0/50c33a66b5895238e25d8575e4c5e33e to your computer and use it in GitHub Desktop.
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