Persist THX SSN hash
All checks were successful
Build and Push Docker Image / setup (push) Successful in 4s
Build and Push Docker Image / build_and_push (push) Successful in 29s

This commit is contained in:
Ankur Malik 2026-05-21 13:31:49 -04:00
parent 62ed938d62
commit 9118f4188f
3 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,7 @@ CREATE TABLE IF NOT EXISTS thx (
summary_risk_score TEXT NULL,
cpu_clock TEXT NULL,
true_ip_first_seen TEXT NULL,
ssn_hash TEXT NULL,
ssn_hash_first_seen TEXT NULL,
account_email_attributes TEXT NULL,
tps_ip_latitude TEXT NULL,
@ -33,6 +34,7 @@ For an existing table, apply the additive migration before deploying the block c
```sql
ALTER TABLE public.thx
ADD COLUMN IF NOT EXISTS ssn_hash TEXT NULL,
ADD COLUMN IF NOT EXISTS input_ip_address TEXT NULL;
CREATE INDEX IF NOT EXISTS idx_thx_input_ip_address

View File

@ -5,6 +5,7 @@ INSERT INTO public.thx (
summary_risk_score,
cpu_clock,
true_ip_first_seen,
ssn_hash,
ssn_hash_first_seen,
account_email_attributes,
tps_ip_latitude,
@ -20,6 +21,7 @@ VALUES (
$summary_risk_score,
$cpu_clock,
$true_ip_first_seen,
$input_ssn_hash,
$ssn_hash_first_seen,
$account_email_attributes,
$tps_ip_latitude,
@ -35,6 +37,7 @@ DO UPDATE
summary_risk_score = EXCLUDED.summary_risk_score,
cpu_clock = EXCLUDED.cpu_clock,
true_ip_first_seen = EXCLUDED.true_ip_first_seen,
ssn_hash = EXCLUDED.ssn_hash,
ssn_hash_first_seen = EXCLUDED.ssn_hash_first_seen,
account_email_attributes = EXCLUDED.account_email_attributes,
tps_ip_latitude = EXCLUDED.tps_ip_latitude,

View File

@ -21,6 +21,9 @@
"true_ip_first_seen": {
"type": ["string", "null"]
},
"input_ssn_hash": {
"type": ["string", "null"]
},
"ssn_hash_first_seen": {
"type": ["string", "null"]
},