static associate(models) {
			// define association here
			order_repo.belongsTo(models.voyage,
				{
					foreignKey: {
						name: "repovoyid"
					}, as : "voyages"
				});
			order_repo.hasMany(models.orderRepoContainer,
				{
					foreignKey: {
						name: "repoid"
					}, as : "orderRepoContainers"
				});
			order_repo.belongsTo(models.vessel,
				{
					foreignKey: {
						name: "repoves"
					}, as : "vessels"
				});
			order_repo.belongsTo(models.tblusers,
				{	
					foreignKey: {
						name: "crtby"
					},
					as : "users"
				});
			order_repo.hasMany(models.orderRepoFile,
				{
					foreignKey: {
						name: "repoorderno"
					}, 
					sourceKey : "repoorderno",
					as : "files"
				});
				
		}
/**
		 * Helper method for defining associations.
		 * This method is not a part of Sequelize lifecycle.
		 * The `models/index` file will call this method automatically.
		 */
Helper method for defining associations.
This method is not a part of Sequelize lifecycle.
The `models/index` file will call this method automatically.
Helper method for defining associations . This method is not a part of Sequelize lifecycle . The ` models / index ` file will call this method automatically .
static associate(models) {
			order_repo.belongsTo(models.voyage,
				{
					foreignKey: {
						name: "repovoyid"
					}, as : "voyages"
				});
			order_repo.hasMany(models.orderRepoContainer,
				{
					foreignKey: {
						name: "repoid"
					}, as : "orderRepoContainers"
				});
			order_repo.belongsTo(models.vessel,
				{
					foreignKey: {
						name: "repoves"
					}, as : "vessels"
				});
			order_repo.belongsTo(models.tblusers,
				{	
					foreignKey: {
						name: "crtby"
					},
					as : "users"
				});
			order_repo.hasMany(models.orderRepoFile,
				{
					foreignKey: {
						name: "repoorderno"
					}, 
					sourceKey : "repoorderno",
					as : "files"
				});
		}
static associate ( models ) { order_repo . belongsTo ( models . voyage , { foreignKey : { name : "repovoyid" } , as : "voyages" } ) ; order_repo . hasMany ( models . orderRepoContainer , { foreignKey : { name : "repoid" } , as : "orderRepoContainers" } ) ; order_repo . belongsTo ( models . vessel , { foreignKey : { name : "repoves" } , as : "vessels" } ) ; order_repo . belongsTo ( models . tblusers , { foreignKey : { name : "crtby" } , as : "users" } ) ; order_repo . hasMany ( models . orderRepoFile , { foreignKey : { name : "repoorderno" } , sourceKey : "repoorderno" , as : "files" } ) ; }
Helper method for defining associations.
Helper method for defining associations .
// define association here