import { prop } from '@typegoose/typegoose'; export default class Redirect { @prop({ required: true }) public key: string; @prop({ required: true }) public to: string; @prop({ required: true }) public visitedCount: number; }