Sup_File/models/FileMongo.js
2018-05-31 01:52:07 +02:00

44 lines
737 B
JavaScript

var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var FileMongoShema = new Schema({
uid: {
type: String,
unique: false
},
name: {
type: String,
unique: false
},
path: {
type: String,
unique: false
},
type: {
type: String,
unique: false
},
taille: {
type: String,
unique: false
},
idUser: {
type: String,
unique: false
},
owner: {
type: String,
unique: false
},
lastDate: {
type: String,
unique: false
},
url: {
type: String,
unique: false
}
});
module.exports = mongoose.model('FileMongo', FileMongoShema);