community-relations/src/models/Redirect.ts

14 lines
274 B
TypeScript
Raw Normal View History

2020-05-05 19:13:27 -04:00
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);