This commit is contained in:
vigdorov
2020-07-02 21:26:37 +03:00
commit 4d34b4a0bb
18 changed files with 13319 additions and 0 deletions

25
src/store/store.schema.ts Normal file
View File

@ -0,0 +1,25 @@
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
export class StoreParams {
key: string;
value: any;
}
@Schema()
export class Store extends Document {
@Prop({
required: true,
unique: true,
type: String,
})
key: string;
@Prop({
required: true,
type: {}
})
value: any;
}
export const StoreSchema = SchemaFactory.createForClass(Store);