Skip to content

Commit

Permalink
feat: define IDocument as type
Browse files Browse the repository at this point in the history
  • Loading branch information
sab115 committed Feb 3, 2025
1 parent 52b5ba7 commit d4358d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/database/documentSchema.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import mongoose, { Schema, Document } from "mongoose";

interface IDocument extends Document {
type IDocument = Document & {
clerkId: string;
eventId: string;
s3DocId: string;
documentType: string;
createdAt: Date;
status: "Completed" | "Pending" | "Not Submitted";
checkList: string[];
}
};

const DocumentSchema = new Schema<IDocument>({
clerkId: { type: String, required: true },
Expand Down

0 comments on commit d4358d0

Please sign in to comment.