Archived
2
This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
definma-api/src/models/model.ts
2020-08-13 12:07:40 +02:00

8 lines
226 B
TypeScript

import mongoose from 'mongoose';
const ModelSchema = new mongoose.Schema({
name: {type: String, index: {unique: true}},
data: Buffer
});
export default mongoose.model<any, mongoose.Model<any, any>>('model', ModelSchema);