Use ShortId in the Url object schema

This commit is contained in:
oitsjustjose 2020-06-28 11:40:53 -05:00
commit 5a832c1f72

View file

@ -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
}