From 725d4d5f7d05756dd43ac0c6e5b90e58fe2ea37d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Gr=C3=BCneberg?= Date: Sat, 20 Dec 2025 11:48:38 +0100 Subject: [PATCH 1/3] feat: new customer properties --- db/migrations/00010_customer_props.sql | 3 +++ packages/orb-sync-lib/src/schemas/customer.ts | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 db/migrations/00010_customer_props.sql diff --git a/db/migrations/00010_customer_props.sql b/db/migrations/00010_customer_props.sql new file mode 100644 index 0000000..3642624 --- /dev/null +++ b/db/migrations/00010_customer_props.sql @@ -0,0 +1,3 @@ +alter table orb.customers add column hierarchy JSONB; +alter table orb.customers add column automatic_tax_enabled boolean; +alter table orb.customers add column exempt_from_automated_tax boolean; \ No newline at end of file diff --git a/packages/orb-sync-lib/src/schemas/customer.ts b/packages/orb-sync-lib/src/schemas/customer.ts index c11ab0c..2400edc 100644 --- a/packages/orb-sync-lib/src/schemas/customer.ts +++ b/packages/orb-sync-lib/src/schemas/customer.ts @@ -25,6 +25,9 @@ export const customerSchema: JsonSchema = { accounting_sync_configuration: { type: 'object' }, reporting_configuration: { type: 'object' }, last_synced_at: { type: 'string' }, + hierarchy: { type: 'object' }, + automatic_tax_enabled: { type: 'boolean' }, + exempt_from_automated_tax: { type: 'boolean' }, }, required: ['id'], } as const; From 05b0966ab826d9e09601a25b94ba3ee6c7489827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Gr=C3=BCneberg?= Date: Sat, 20 Dec 2025 11:52:13 +0100 Subject: [PATCH 2/3] Update 00010_customer_props.sql --- db/migrations/00010_customer_props.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/migrations/00010_customer_props.sql b/db/migrations/00010_customer_props.sql index 3642624..a9f5d90 100644 --- a/db/migrations/00010_customer_props.sql +++ b/db/migrations/00010_customer_props.sql @@ -1,3 +1,3 @@ -alter table orb.customers add column hierarchy JSONB; -alter table orb.customers add column automatic_tax_enabled boolean; -alter table orb.customers add column exempt_from_automated_tax boolean; \ No newline at end of file +alter table orb.customers add column "hierarchy" JSONB; +alter table orb.customers add column "automatic_tax_enabled" boolean; +alter table orb.customers add column "exempt_from_automated_tax" boolean; \ No newline at end of file From 91e19b2aa1474fc78c8b579cdf4f0502b0821af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Gr=C3=BCneberg?= Date: Sat, 20 Dec 2025 11:58:34 +0100 Subject: [PATCH 3/3] fx --- .../{00010_customer_props.sql => 0010_customer_props.sql} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename db/migrations/{00010_customer_props.sql => 0010_customer_props.sql} (100%) diff --git a/db/migrations/00010_customer_props.sql b/db/migrations/0010_customer_props.sql similarity index 100% rename from db/migrations/00010_customer_props.sql rename to db/migrations/0010_customer_props.sql