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);
