| 1234567891011121314151617181920212223 |
- const mongoose = require('mongoose')
- const user = require('./user.model')
- const { Schema, Types } = mongoose
- module.exports = mongoose.model(
- 'Pengunjung',
- new Schema(
- {
- os: { type: String },
- ipv4: { type: String },
- location: {
- country: { type: String },
- region: { type: String },
- city: { type: String },
- lat: { type: Number },
- lon: { type: Number },
- timezone: { type: String },
- },
- },
- { timestamps: true }
- ),
- 'pengunjung'
- )
|