Stores daily rotated keys used for hashing the anonymous identifiers in page_visit_datum. The key for the day is permanently deleted the next day.
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
created_at | timestamp with time zone | now() | false | Timestamp when the record was created. | ||
hashing_key | bytea | gen_random_bytes(1024) | false | Cyrptographically strong random data to be used in hashing. Postgres generates the values for this column on insert. | ||
id | uuid | uuid_generate_v4() | false | A unique, stable identifier for the record. | ||
updated_at | timestamp with time zone | now() | false | Timestamp when the record was last updated. The field is updated automatically by the set_timestamp trigger. | ||
valid_for_date | date | false | The date when this specific hashing key is used. |
Name | Type | Definition |
---|---|---|
page_visit_datum_daily_visit_hashing_keys_pkey | PRIMARY KEY | PRIMARY KEY (id) |
page_visit_datum_daily_visit_hashing_keys_valid_for_date_key | UNIQUE | UNIQUE (valid_for_date) |
Name | Definition |
---|---|
page_visit_datum_daily_visit_hashing_keys_pkey | CREATE UNIQUE INDEX page_visit_datum_daily_visit_hashing_keys_pkey ON public.page_visit_datum_daily_visit_hashing_keys USING btree (id) |
page_visit_datum_daily_visit_hashing_keys_valid_for_date_key | CREATE UNIQUE INDEX page_visit_datum_daily_visit_hashing_keys_valid_for_date_key ON public.page_visit_datum_daily_visit_hashing_keys USING btree (valid_for_date) |
Name | Definition |
---|---|
set_timestamp | CREATE TRIGGER set_timestamp BEFORE UPDATE ON public.page_visit_datum_daily_visit_hashing_keys FOR EACH ROW EXECUTE FUNCTION trigger_set_timestamp() |
Generated by tbls