 	update: -> true
 	remove: -> true
 
-Vessels.schemaObj =
+Vessels.schema = new SimpleSchema
 
 	_id:
 		type: String

		optional: true
	type:
		type: String
		dropdown: 'vesselType'
		allowedValues: ['c', 'cr', 'mf', 'mt', 'p', 'pt', 'rc', 'f', 'ro', 't', 'unknown']
	callsign:
		type: String

	mmsi:
		type: String
		optional: true
	visits:
		type: Array
	'visits.$': new SimpleSchema
		userId:
			type: String
		isUserVisible:
			type: Boolean
		harborGroupId:
			type: String
		date:
			type: Date
			optional: true
		dateNext:
			type: Date
			optional: true
		languages:
			type: String
			optional: true

Vessels.attachSchema = Vessels.schema
