mirror of
https://github.com/Permissionless-Software-Foundation/ipfs-bch-wallet-consumer.git
synced 2026-09-21 16:52:03 -07:00
16 lines
274 B
JavaScript
16 lines
274 B
JavaScript
/*
|
|
Usage data model
|
|
*/
|
|
|
|
// Global npm libraries
|
|
import mongoose from 'mongoose'
|
|
|
|
const Usage = new mongoose.Schema({
|
|
ip: { type: String },
|
|
url: { type: String },
|
|
method: { type: String },
|
|
timestamp: { type: Date }
|
|
})
|
|
|
|
export default mongoose.model('usage', Usage)
|