| 1234567891011121314151617 | 
							- const mongoose = require('mongoose')
 
- const { Schema, Types } = mongoose
 
- const laporan = require('./laporan.model')
 
- const sanksi = require('./sanksi.model')
 
- module.exports = mongoose.model(
 
-     'AutoSave',
 
-     new Schema({
 
-         laporan_id: { type: Types.ObjectId, ref: laporan },
 
-         sanksi_id: { type: Types.ObjectId, ref: sanksi },
 
-         sanksi: { type: Object },
 
-         laporan: { type: Object }
 
-     }, {
 
-         timestamps: true,
 
-     }),
 
-     'autosave'
 
- )
 
 
  |