| 123456789101112131415161718192021 |
- const mongoose = require('mongoose')
- const user = require('./user.model')
- const { Schema, Types } = mongoose
- module.exports = mongoose.model(
- 'Log',
- new Schema(
- {
- user: {
- type: Types.ObjectId,
- ref: user,
- },
- menu: {type:String},
- aktivitas: { type: String },
- os: { type: String },
- ipv4: { type: String },
- },
- { timestamps: true }
- ),
- 'log'
- )
|