This commit is contained in:
suseendhiran17 2022-05-17 12:50:05 +05:30
parent f44969a8c5
commit 4d2adf5968
10 changed files with 14 additions and 6 deletions

8
.gitignore vendored
View File

@ -1,3 +1,7 @@
.env
/node_modules
/storage
.env
/storage/log/
/storage/uploads/
!storage
storage/*
!storage/uploads/

View File

@ -198,7 +198,7 @@ exports.PullCreditPdPhotographsData = async (req, res) =>
};
// MWISE00840
@ -295,7 +295,7 @@ exports.GetCreditPdData = async (req, res) =>
{model: CreditKeyProductBusinessContribution }, {model: EmployeeStrength },
{model: ClientDetail }, {model: StockDetail },
{model: CreditExistingLoanObligation }, {model: FamilyMemberInvolvedInBusiness },
{model : CreditManager }, // {model: Photograph },
{model : CreditManager }, {model: Photograph },
{model: CreditFinalRemarks }, {model: CreditLoanDetail },
{model: CreditGeneralBusinessInformation }, {model: SupplierDetail }
]

View File

@ -99,6 +99,10 @@ module.exports = (sequelize, DataTypes) => {
foreignKey: 'pd_id',
sourceKey : 'pd_id'
});
CreditGeneralInformation.hasMany(models.Photograph, {
foreignKey: 'pd_id',
sourceKey : 'pd_id'
});
}
return CreditGeneralInformation

View File

@ -153,9 +153,9 @@ router.post('/PullCreditPdPhotographsData', upload.single('img'),function(req,re
* - in: query
* name: img_name
* schema:
* type: integer
* type: string
* required: true
* example:
* example: 1652702282873-tree-736885__480
* responses:
* 200:
* description: success

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB