Download src/models/AuditLog.js from TwanAPI/trsstapi: direct link, hf CLI and curl.
- Browser
- Download file 357 Bytes
-
https://huggingface.co/spaces/TwanAPI/trsstapi/resolve/aaff83dd1affe87e82019cb318c593e9d15fa2fd/src/models/AuditLog.js
- Command line
-
hf download hf://spaces/TwanAPI/trsstapi@aaff83dd1affe87e82019cb318c593e9d15fa2fd/src/models/AuditLog.js
-
curl -L -o AuditLog.js https://huggingface.co/spaces/TwanAPI/trsstapi/resolve/aaff83dd1affe87e82019cb318c593e9d15fa2fd/src/models/AuditLog.js
357 Bytes
| import mongoose from "mongoose"; | |
| const AuditLogSchema = new mongoose.Schema( | |
| { | |
| userId: mongoose.Schema.Types.ObjectId, | |
| action: String, | |
| severity: String, | |
| ip: String, | |
| userAgent: String, | |
| isAnomaly: { type: Boolean, default: false }, | |
| }, | |
| { timestamps: true } | |
| ); | |
| export const AuditLog = mongoose.model("AuditLog", AuditLogSchema); | |