coolify/api/models/Logs/Application.js

11 lines
302 B
JavaScript
Raw Normal View History

2021-03-24 21:11:14 +00:00
const mongoose = require('mongoose')
const logSchema = mongoose.Schema(
{
deployId: { type: String, required: true },
event: { type: String, required: true }
},
{ timestamps: { createdAt: 'createdAt', updatedAt: false } }
)
module.exports = mongoose.model('logs-application', logSchema)