diff options
author | Raphael <mail@raphaelkabo.com> | 2023-10-06 16:54:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-06 16:54:03 +0100 |
commit | a14afed944e5f0b87af96cc5c6a262d246b88d1d (patch) | |
tree | 26104aa7f2717ea7e8f69734a2181d456f264481 /src/models/Log.ts | |
parent | f390b1d45b3f44a860fef4df2b31064f441b5065 (diff) | |
parent | 722d54e5ae8957436818b14e7aea613b19b12d28 (diff) |
Merge pull request #111 from lowercasename/rk/typescript
Typescript migration
Diffstat (limited to 'src/models/Log.ts')
-rwxr-xr-x | src/models/Log.ts | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/models/Log.ts b/src/models/Log.ts index 8f905fd..24991d4 100755 --- a/src/models/Log.ts +++ b/src/models/Log.ts @@ -1,33 +1,33 @@ import mongoose from "mongoose"; export interface ILog extends mongoose.Document { - status: string; - process: string; - message: string; - timestamp: Date; + status: string; + process: string; + message: string; + timestamp: Date; } const LogSchema = new mongoose.Schema({ - status: { - type: String, - trim: true, - required: true, - }, - process: { - type: String, - trim: true, - required: true, - }, - message: { - type: String, - trim: true, - required: true, - }, - timestamp: { - type: Date, - trim: true, - required: true, - }, + status: { + type: String, + trim: true, + required: true, + }, + process: { + type: String, + trim: true, + required: true, + }, + message: { + type: String, + trim: true, + required: true, + }, + timestamp: { + type: Date, + trim: true, + required: true, + }, }); export default mongoose.model<ILog>("Log", LogSchema); |