Accept flexible loan payloads and nest related info on lending responses.
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled

Widen loan_orders.region in the init migration and share common relation helpers across loan APIs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
guwandykandCursor committed 2026-08-26 13:06:06 +05:00
1 parent 0098422798
commit 6683826662
13 files changed
+591 -346

No files matched your search

+1 -1
View File
@@ -250,7 +250,7 @@ CREATE TABLE IF NOT EXISTS loan_orders (
source character varying(255) DEFAULT 'web'::character varying,
user_id bigint,
loan_type bigint NOT NULL,
region character varying(2) NOT NULL,
region character varying(255) NOT NULL,
branch_id bigint NOT NULL,
customer_name character varying(255) NOT NULL,
customer_surname character varying(255) NOT NULL,
@@ -1,3 +0,0 @@
ALTER TABLE card_pin_orders
ALTER COLUMN region TYPE character varying(2)
USING LEFT(region, 2);
@@ -1,2 +0,0 @@
ALTER TABLE card_pin_orders
ALTER COLUMN region TYPE character varying(255);