File uploading, other tweaks.
This commit is contained in:
parent
7b6328809b
commit
3f461319b3
7 changed files with 102 additions and 180 deletions
13
src/app/models/config.model.ts
Normal file
13
src/app/models/config.model.ts
Normal 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')
|
||||
Loading…
Reference in a new issue