Enrich cards API responses with joined relations and share common helpers.
Nest user/branch/cardType/cardState on card, order, pin-order, and visa-master reads; accept flexible dates/IDs on pin create; widen pin region; ignore undefined list query params; extract internal/cards/shared to remove duplicated types and helpers. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
1fd0abbcb2
commit
0098422798
27 files changed
+942
-777
No files matched your search
@@ -219,7 +219,7 @@ CREATE TABLE IF NOT EXISTS card_pin_orders (
|
||||
user_id bigint,
|
||||
card_type_id bigint NOT NULL,
|
||||
card_number character varying(255),
|
||||
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,
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE card_pin_orders
|
||||
ALTER COLUMN region TYPE character varying(2)
|
||||
USING LEFT(region, 2);
|
||||
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE card_pin_orders
|
||||
ALTER COLUMN region TYPE character varying(255);
|
||||
Reference in new issue
Block a user