Align loan type and required document schema with updated column names.

Rename loan_required_documents to loan_order_required_docs, simplify document fields to name/value, and map loan_types columns to name, maturity, notes, and active.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-06 22:48:19 +05:00
parent 08be61cbcd
commit ef56625321
9 changed files with 66 additions and 89 deletions

View File

@@ -41,7 +41,7 @@ func (h *handler) Register(router *gin.RouterGroup) {
// @Tags loan-document
// @Produce json
// @Security BearerAuth
// @Param document_name query string false "Filter by title (en, ru, tm)"
// @Param document_name query string false "Filter by name"
// @Param active query bool false "Filter by active"
// @Param page query int false "Page number" default(1)
// @Param limit query int false "Items per page" default(10)