{"size": 489, "ext": "js", "max_stars_repo_path": "schema/PackageModel.js", "max_stars_repo_name": "eventEmitter/wpm-registry", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "schema/PackageModel.js", "max_issues_repo_name": "eventEmitter/wpm-registry", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "schema/PackageModel.js", "max_forks_repo_name": "eventEmitter/wpm-registry", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 15.28125, "max_line_length": 58, "alphanum_fraction": 0.5991820041}
!function(){

	var   Class 		= require('ee-class')
		, log 			= require('ee-log')
		, BaseModel 	= require('ee-bookshelf-schema').BaseModel;



	module.exports = new Class({ 
		inherits: BaseModel

		, name: 'package'


		, repositoryType: {
			belongsTo: 'id_repositoryType'
		}

		, packageVersion: {
			hasMany: 'id_package'
		}


		, organization: {
			belongsToMany: {
				  table: 	'organization_package'
				, key: 		'id_package'
				, otherKey: 'id_organization'
			}
		}
	});
}();