| 1234567891011121314151617181920212223242526272829 |
- const mongoose = require('mongoose')
- const { Schema,Types } = mongoose
- const dokumen = require('./dokumen.model')
- const laporan = require('./laporan.model')
- module.exports = mongoose.model(
- 'Signature',
- new Schema({
- laporan_id: {
- type: Types.ObjectId,
- ref: laporan,
- },
- daftar_kehadiran_peserta: [
- new Schema(
- {
- nama: String,
- ttd: {
- type: Types.ObjectId,
- ref: dokumen,
- },
- },
- {
- timestamps: true
- }
- )
- ],
- }),
- 'signature'
- )
|