mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-18 12:33:06 +00:00
13 lines
359 B
TypeScript
13 lines
359 B
TypeScript
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);
|