1234567891011121314151617181920 |
- 'use strict';
- module.exports = app => {
- const { mongoose } = app;
- const { Schema } = mongoose;
- const FilesSchema = new Schema({
- // 文件名
- name: {
- type: String,
- },
- // 文件路径
- path: {
- type: String,
- },
- // 数据id
- id: {
- type: String,
- },
- });
- return mongoose.model('Files', FilesSchema);
- };
|