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.
|
import mongoose from 'mongoose';
|
|
|
|
const ModelFileSchema = new mongoose.Schema({
|
|
name: {type: String, index: {unique: true}},
|
|
data: Buffer
|
|
});
|
|
|
|
export default mongoose.model<any, mongoose.Model<any, any>>('model_file', ModelFileSchema);
|