v1.0.13 (#46)
This commit is contained in:
11
src/models/ApplicationLog.ts
Normal file
11
src/models/ApplicationLog.ts
Normal 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);
|
Reference in New Issue
Block a user