add Redirect db model

merge-requests/12/head
Matthew 2020-05-05 19:13:27 -04:00 committed by Bsian
parent 34d1f585fd
commit 8b5ed201de
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
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 Moderation, ModerationInterface } from './Moderation';
export { default as Redirect, RedirectInterface } from './Redirect';