File uploading, other tweaks.

This commit is contained in:
oitsjustjose 2020-07-04 23:35:15 -05:00
commit 3f461319b3
7 changed files with 102 additions and 180 deletions

View file

@ -0,0 +1,13 @@
import { Document, model, Schema, Types } from 'mongoose'
const ConfigSchema = new Schema({
json: Object,
name: String,
})
export type ConfigModel = Document & {
json: object,
name: string,
}
export default model<ConfigModel>('configs', ConfigSchema, 'configs')