add Redirect db model

merge-requests/11/merge
Matthew 2020-05-05 19:13:27 -04:00
parent ea3806fcc3
commit 171da19be8
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
2 changed files with 14 additions and 0 deletions

13
src/models/Redirect.ts Normal file
View File

@ -0,0 +1,13 @@
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);

View File

@ -1,2 +1,3 @@
export { default as Member, MemberInterface } from './Member'; export { default as Member, MemberInterface } from './Member';
export { default as Moderation, ModerationInterface } from './Moderation'; export { default as Moderation, ModerationInterface } from './Moderation';
export { default as Redirect, RedirectInterface } from './Redirect';