14 lines
274 B
TypeScript
14 lines
274 B
TypeScript
|
import { Document, Schema, model } from 'mongoose';
|
||
|
|
||
|
export interface RedirectInterface extends Document {
|
||
|
key: string,
|
||
|
to: string,
|
||
|
}
|
||
|
|
||
|
const Redirect: Schema = new Schema({
|
||
|
key: String,
|
||
|
to: String,
|
||
|
});
|
||
|
|
||
|
export default model<RedirectInterface>('Redirect', Redirect);
|