This commit is contained in:
Andras Bacsai
2021-05-16 21:54:44 +02:00
committed by GitHub
parent 23a4ebb74a
commit adcd68c1ab
68 changed files with 2466 additions and 1194 deletions

View File

@@ -0,0 +1,11 @@
import mongoose from 'mongoose';
const { Schema } = mongoose;
const ApplicationLogsSchema = new Schema({
deployId: { type: String, required: true },
event: { type: String, required: true }
});
ApplicationLogsSchema.set('timestamps', true);
export default mongoose.models['logs-application'] || mongoose.model('logs-application', ApplicationLogsSchema);