 		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
	lastVisit:
		type: Date
		optional: true
	harborGroup:
		type: String
		readonly: true
	nextVisit:
		type: Date
		optional: true
	languages:
		type: String
		optional: true
	comments:
		type: String
		optional: true

schemaObj = {}

for schemaObjKey, schemaObjValue of Vessels.schemaObj
	schemaObj[schemaObjKey] = {}

	for keyAttr, keyValue of schemaObjValue when keyAttr not in ['dropdown', 'readonly']
		schemaObj[schemaObjKey][keyAttr] = keyValue

Vessels.schema = new SimpleSchema(schemaObj)

Vessels.attachSchema = Vessels.schema

	update: -> true
	remove: -> true

Vessels.schema = new SimpleSchema

	_id:
		type: String
