diff --git a/src/app/schema.ts b/src/app/schema.ts index 19b93fa..cc2ba1b 100644 --- a/src/app/schema.ts +++ b/src/app/schema.ts @@ -1,11 +1,13 @@ import mongoose, { Document, Schema, Types } from 'mongoose' const UrlSchema: Schema = new Schema({ + shortid: String, url: String }) export type UrlModel = Document & { _id: Types.ObjectId, + shortid: string, url: string }