| 1234567891011121314151617181920 | 
							- 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,
 
-       },
 
-       aktivitas: { type: String },
 
-       os: { type: String },
 
-       ipv4: { type: String },
 
-     },
 
-     { timestamps: true }
 
-   ),
 
-   'log'
 
- )
 
 
  |