change users table

This commit is contained in:
2026-07-13 12:11:35 +05:00
parent c29c72fd92
commit 6705c4ce91
22 changed files with 3150 additions and 83 deletions

View File

@@ -174,7 +174,9 @@ func (r *repository) GetByID(ctx context.Context, id int64) (loanorders.LoanOrde
const nextUniqueIDSQL = `(SELECT LPAD((COALESCE(MAX(unique_id::bigint), 0) + 1)::text, 4, '0') FROM loan_orders)`
func (r *repository) Create(ctx context.Context, dto loanorders.CreateLoanOrderDTO) (loanorders.LoanOrderDTO, error) {
args := createArgs(dto)
// unique_id is supplied positionally via nextUniqueIDSQL below, so drop it
// from the bound args to avoid double-supplying the first column.
args := createArgs(dto)[1:]
placeholders := make([]string, len(args))
for i := range args {