diff --git a/db/migrations/0010_customer_props.sql b/db/migrations/0010_customer_props.sql new file mode 100644 index 0000000..a9f5d90 --- /dev/null +++ b/db/migrations/0010_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;