
import mongoose from 'mongoose';

let ItemAnnexSchema = new mongoose.Schema({
	idPolicyAnnex: {type: String, require: true},
	policyAnnex: { type: mongoose.Schema.ObjectId, ref: "PolicyAnnex"},
	numberItem: {type: Number, require: true},
	totalValueItem: {type: Number, require: true},
	totalValuePrimaItem: {type: Number, require: true},
	detailsItem: {type: String},
	observationsItem: {type: String},
	validDays: {type: String},
	exclusionDate: {type: Date},
	inclusionDate: {type: Date},
	modificationDate: {type: Date},
	dateCreate: {type: Date, require: true},
	userCreate: {type: String, require: true},
	dateUpdate: {type: Date, require: true},
	userUpdate: {type: String, require: true}
});

export default mongoose.model('ItemAnnex', ItemAnnexSchema)

@@ -238,51 +238,262 @@
 ,%0A%09t
-otalValueItem: %7Btype: Number, require: true
+ravelfrom: %7Btype: String%7D,%0A%09travelTo: %7Btype: String%7D,%0A%09travelTransportation: %7Btype: String%7D,%0A%09commodity: %7Btype: String%7D,%0A%09coverage: %7Btype: String%7D,%0A%09packaging: %7Btype: String%7D,%0A%09application: %7Btype: String%7D,%0A%09order: %7Btype: String%7D,%0A%09provider: %7Btype: String
 %7D,%0A%09
@@ -506,13 +506,8 @@
 alue
-Prima
 Item
@@ -517,39 +517,62 @@
 type: Number
-, require: true
+%7D,%0A%09totalValuePrimaItem: %7Btype: Number
 %7D,%0A%09detailsI

add files to model item from ItemAnnexImportTransport