community-relations/src/models/Redirect.ts

19 lines
337 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,
}
export interface RedirectRaw {
key: string,
to: string,
}
2020-05-05 19:13:27 -04:00
const Redirect: Schema = new Schema({
key: String,
to: String,
});
export default model<RedirectInterface>('Redirect', Redirect);