Database: tables & columns
Every table with its columns, types, keys and foreign keys, and which menu pages read or write it. Structure only — no data. PHI = encrypted patient data or its lookup hash.
adjustment_reposts7 columns2 indexes0 FKs
Used by: Adjustment Summary EOD
| Column | Type | Null | Keys |
|---|---|---|---|
transaction_id | text | required | PK |
patient_id | text | ||
location_id | text | ||
original_date | date | ||
reposted_on | date | ||
amount | numeric(12,2) | ||
recorded_at | timestamp with time zone | required |
agent_adjustment_summary_eod17 columns6 indexes0 FKs
Used by: Adjustment Summary EOD
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
office_name | text | required | |
date | date | required | |
service_date | date | ||
patient_name | text | required | |
provider | text | required | |
category | text | required | |
proc_code | text | required | |
amount | numeric(12,2) | required | |
count | integer | required | |
source | text | ||
captured_at | timestamp with time zone | ||
subcategory | text | required | |
average_write_off | numeric(12,2) | ||
applied_credit_adjustments | numeric(12,2) | ||
patient_name_encrypted | text | PHI | |
office_id | text |
agent_daily_aged_receivables29 columns6 indexes0 FKs
Used by: AR Aging Report, AR Report By Month, Collection Report - Keith
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
office_name | text | required | |
date | date | required | |
procedure_filter | text | required | |
before_30 | numeric(14,2) | required | |
before_60 | numeric(14,2) | required | |
before_90 | numeric(14,2) | required | |
over_90 | numeric(14,2) | required | |
total | numeric(14,2) | required | |
unapplied_credits | numeric(14,2) | required | |
balance | numeric(14,2) | required | |
source | text | ||
captured_at | timestamp with time zone | ||
guarantor_before_30 | numeric(14,2) | required | |
guarantor_before_60 | numeric(14,2) | required | |
guarantor_before_90 | numeric(14,2) | required | |
guarantor_over_90 | numeric(14,2) | required | |
guarantor_total | numeric(14,2) | required | |
insurance_before_30 | numeric(14,2) | required | |
insurance_before_60 | numeric(14,2) | required | |
insurance_before_90 | numeric(14,2) | required | |
insurance_over_90 | numeric(14,2) | required | |
insurance_total | numeric(14,2) | required | |
writeoff_before_30 | numeric(14,2) | required | |
writeoff_before_60 | numeric(14,2) | required | |
writeoff_before_90 | numeric(14,2) | required | |
writeoff_over_90 | numeric(14,2) | required | |
writeoff_total | numeric(14,2) | required | |
office_id | text |
agent_daily_ar_totals10 columns6 indexes0 FKs
Used by: no menu page — used by Dentrix agent
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
office_name | text | required | |
date | date | required | |
net_production | numeric(14,2) | required | |
gross_production | numeric(14,2) | required | |
collection | numeric(14,2) | required | |
provider_totals_collection | numeric(14,2) | ||
source | text | ||
captured_at | timestamp with time zone | ||
office_id | text |
agent_daily_insurance_deposit8 columns6 indexes0 FKs
Used by: Insurance Claims Paid
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
office_name | text | required | |
date | date | required | |
payment | numeric(14,2) | required | |
transaction_count | integer | required | |
source | text | ||
captured_at | timestamp with time zone | ||
office_id | text |
agent_dental_day_roi7 columns6 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts, Dentrix agent
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
office_name | text | required | |
month | text | required | |
metrics | jsonb | required | |
source | text | ||
captured_at | timestamp with time zone | ||
office_id | text |
agent_deposit_slips19 columns6 indexes0 FKs
Used by: Deposit Slip Report, Collection Report - Keith, Candid Case Tracker – Field, Candid Case Tracker – Office
| Column | Type | Null | Keys |
|---|---|---|---|
id | bigint | required | PK |
office_name | text | required | |
transaction_date | date | required | |
payment_type | text | required | |
patient_name | text | ||
carrier_name | text | ||
bank | text | ||
check_number | text | ||
transaction_id | text | ||
reference_number | text | ||
status | text | ||
last_updated_by | text | ||
amount | numeric | required | |
row_hash | text | required | PHI |
occurrence | integer | required | |
source | text | ||
captured_at | timestamp with time zone | required | |
patient_name_encrypted | text | PHI | |
office_id | text |
agent_ledger_entries16 columns3 indexes0 FKs
Used by: LEDGER Report
| Column | Type | Null | Keys |
|---|---|---|---|
entry_key | text | required | PK |
office_name | text | required | |
patient_id | text | required | |
trans_date | date | ||
modified_date | date | ||
proc_code | text | ||
category | text | ||
subcategory | text | ||
description | text | ||
proc_description | text | ||
provider | text | ||
applied_payments | numeric | required | |
amount | numeric | required | |
source | text | ||
synced_at | timestamp with time zone | required | |
office_id | text |
agent_office_roi7 columns6 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts, Dentrix agent
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
office_name | text | required | |
month | text | required | |
metrics | jsonb | required | |
source | text | ||
captured_at | timestamp with time zone | ||
office_id | text |
agent_outstanding_claims25 columns4 indexes0 FKs
Used by: Outstanding Claims, Candid Case Tracker – Field, Candid Case Tracker – Office
| Column | Type | Null | Keys |
|---|---|---|---|
claim_key | text | required | PK |
office_name | text | required | |
as_of_date | date | required | |
service_date | date | ||
created_date | date | ||
carrier_name | text | ||
carrier_phone | text | ||
group_plan | text | ||
plan_phone | text | ||
subscriber_name | text | ||
subscriber_dob | date | ||
subscriber_number | text | ||
patient_name | text | ||
patient_dob | date | ||
aging_bucket | text | ||
expected | numeric(12,2) | required | |
billed | numeric(12,2) | required | |
source | text | ||
synced_at | timestamp with time zone | required | |
patient_name_encrypted | text | PHI | |
patient_dob_encrypted | text | PHI | |
subscriber_name_encrypted | text | PHI | |
subscriber_dob_encrypted | text | PHI | |
subscriber_number_encrypted | text | PHI | |
office_id | text |
agent_outstanding_claims_totals7 columns3 indexes0 FKs
Used by: Outstanding Claims
| Column | Type | Null | Keys |
|---|---|---|---|
office_name | text | required | PK |
as_of_date | date | required | |
bucket | text | required | PK |
expected | numeric(12,2) | required | |
billed | numeric(12,2) | required | |
synced_at | timestamp with time zone | required | |
office_id | text |
agent_payment_plan_transactions12 columns4 indexes0 FKs
Used by: Payment Plan Report
| Column | Type | Null | Keys |
|---|---|---|---|
tx_key | text | required | PK |
office_name | text | required | |
guarantor_name | text | required | |
plan_key | text | ||
transaction_date | date | ||
amount | numeric | required | |
status | text | ||
remaining_balance | numeric | ||
source | text | ||
synced_at | timestamp with time zone | required | |
guarantor_name_encrypted | text | PHI | |
office_id | text |
agent_payment_plans18 columns6 indexes0 FKs
Used by: Payment Plan Report
| Column | Type | Null | Keys |
|---|---|---|---|
plan_key | text | required | PK |
office_name | text | required | |
guarantor_name | text | required | |
plan_start_date | date | ||
plan_amount | numeric | required | |
payment_frequency | text | ||
payment_count | integer | required | |
each_payment | numeric | required | |
card_expiration | text | ||
dentrix_id | text | ||
last_payment_date | date | ||
last_payment_status | text | ||
remaining_balance | numeric | ||
card_last4 | text | ||
source | text | ||
synced_at | timestamp with time zone | required | |
guarantor_name_encrypted | text | PHI | |
office_id | text |
agent_provider_ar_detail8 columns8 indexes0 FKs
Used by: Production Tracking, Provider A/R Detail Report, Accounting Report
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
office_name | text | required | |
date | date | required | |
provider | text | required | |
metrics | jsonb | required | |
source | text | ||
captured_at | timestamp with time zone | ||
office_id | text |
agent_provider_ar_totals19 columns6 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts, Dentrix agent
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
office_name | text | required | |
date | date | required | |
provider | text | required | |
beginning_balance | numeric(14,2) | required | |
procedure_charges | numeric(14,2) | required | |
production_charge_adj | numeric(14,2) | required | |
production_credit_adj | numeric(14,2) | required | |
production_total | numeric(14,2) | required | |
payments | numeric(14,2) | required | |
collection_charge_adj | numeric(14,2) | required | |
collection_credit_adj | numeric(14,2) | required | |
collection_total | numeric(14,2) | required | |
ending_balance | numeric(14,2) | required | |
net_change | numeric(14,2) | required | |
source | text | ||
captured_at | timestamp with time zone | ||
row_type | text | required | |
office_id | text |
agent_referred_by_patients16 columns5 indexes0 FKs
Used by: Referred By Patients, Referral Summary
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
ascend_patient_id | text | required | |
patient_name | text | ||
office_name | text | ||
trans_date | date | ||
next_appointment_date | date | ||
referral_type | text | ||
referred_by | text | ||
source | text | ||
captured_at | timestamp with time zone | ||
amount | numeric | ||
production | numeric | ||
patient_name_encrypted | text | PHI | |
referred_by_encrypted | text | PHI | |
referred_by_hash | text | PHI | |
office_id | text |
agent_unsent_claims16 columns3 indexes0 FKs
Used by: AR Aging Report, Dental Day Production, Unsent Claims, Unsent Claims History, Patient Checkout / Billing, Candid Case Tracker – Field, Candid Case Tracker – Office
| Column | Type | Null | Keys |
|---|---|---|---|
claim_id | text | required | PK |
location_id | text | required | |
location_name | text | ||
patient_id | text | ||
patient_name | text | ||
subscriber_name | text | ||
service_date | date | ||
created_date | date | ||
claim_type | text | ||
carrier_name | text | ||
amount | numeric | required | |
is_predetermination | boolean | required | |
synced_at | timestamp with time zone | required | |
claim_state | text | ||
patient_name_encrypted | text | PHI | |
subscriber_name_encrypted | text | PHI |
airports9 columns1 indexes0 FKs
Used by: Flight Home Tickets
| Column | Type | Null | Keys |
|---|---|---|---|
iata | character(3) | required | PK |
name | text | required | |
city | text | required | |
state | character(2) | required | |
size | text | required | |
latitude | double precision | required | |
longitude | double precision | required | |
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required |
app_config3 columns1 indexes0 FKs
Used by: B2B Leads, Conference Leads
| Column | Type | Null | Keys |
|---|---|---|---|
key | text | required | PK |
value | text | required | |
updated_at | timestamp with time zone |
appeals_denials24 columns6 indexes0 FKs
Used by: Appeals & Denials, Appeals & Denial Summary, Summary by Provider
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
office | text | required | |
entry_date | text | ||
dos | text | ||
patient | text | ||
status_tag | text | ||
denial_reason | text | ||
appealed | text | ||
appeal_count | integer | ||
claim_closed | text | ||
disposition | text | ||
provider | text | ||
balance | numeric(12,2) | ||
amount_written_off | numeric(12,2) | ||
notes | text | ||
effective_date | text | ||
source_row | integer | ||
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required | |
office_dentrix_id | text | ||
office_name | text | ||
patient_encrypted | text | PHI | |
notes_encrypted | text | PHI | |
denial_reason_encrypted | text | PHI |
appointment_type_operatories3 columns2 indexes0 FKs
Used by: no menu page — used by booking app, appointment app
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
appointment_type_id | integer | required | |
operatory_id | integer | required |
appointment_types7 columns2 indexes0 FKs
Used by: no menu page — used by booking app, appointment app
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
type_id | text | required | |
name | text | required | |
duration_minutes | integer | required | |
available_for | text | required | |
active | boolean | ||
created_at | timestamp with time zone |
ar_totals_cache13 columns3 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
location_id | text | required | |
location_name | text | required | |
period | text | required | |
procedure_charges | real | required | |
prod_charge_adj | real | required | |
prod_credit_adj | real | required | |
production_total | real | required | |
payments | real | required | |
coll_charge_adj | real | required | |
collection_total | real | required | |
net_change | real | required | |
synced_at | timestamp with time zone |
audit_logs14 columns6 indexes0 FKs
Used by: Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations, Audit Logs, Audit log & patient-data log
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
entity_type | text | required | |
entity_id | text | required | |
action | text | required | |
user_name | text | ||
ip_address | text | ||
user_agent | text | ||
old_data | jsonb | ||
new_data | jsonb | ||
metadata | jsonb | ||
created_at | timestamp with time zone | required | |
old_data_encrypted | text | PHI | |
new_data_encrypted | text | PHI | |
metadata_encrypted | text | PHI |
avari_candidates22 columns2 indexes0 FKs
Used by: Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
first_name | text | required | |
last_name | text | required | |
email | text | ||
phone | text | ||
position | text | ||
preferred_office | text | ||
stage | text | required | |
tryout_date | date | ||
interview_notes | text | ||
tryout_feedback | text | ||
scorecard | jsonb | ||
created_by | text | ||
created_at | timestamp with time zone | required | |
updated_by | text | ||
updated_at | timestamp with time zone | required | |
docs | jsonb | required | |
interview_date | date | ||
interviewer | text | ||
tryout_office | text | ||
tryout_manager | text | ||
recommendation | text |
avari_payroll_checks6 columns1 indexes1 FKs
Used by: Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations
| Column | Type | Null | Keys |
|---|---|---|---|
staff_id | integer | required | PK FK → staff |
work_date | date | required | PK |
status | text | required | |
note | text | ||
checked_by | text | ||
checked_at | timestamp with time zone | required |
avari_payroll_periods3 columns1 indexes0 FKs
Used by: Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations
| Column | Type | Null | Keys |
|---|---|---|---|
period | text | required | PK |
finalized_by | text | required | |
finalized_at | timestamp with time zone | required |
b2b_leads44 columns5 indexes0 FKs
Used by: B2B Leads, Conference Leads
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
first_name | text | required | |
last_name | text | required | |
company_name | text | required | |
email | text | required | |
phone | text | required | |
address | text | ||
schedule_date | text | ||
schedule_time | text | ||
status | text | required | |
assigned_to | text | ||
hubspot_synced | boolean | ||
hubspot_company_id | text | ||
hubspot_contact_id | text | ||
calendar_synced | boolean | ||
notes | text | ||
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required | |
website | text | ||
street | text | ||
city | text | ||
state | text | ||
zip | text | ||
how_heard | text | ||
utm_params | text | ||
page_url | text | ||
hubspot_form_id | text | ||
job_title | text | ||
num_employees | text | ||
lead_source | text | required | |
teams_meeting_url | text | ||
calendar_event_id | text | ||
insurance_carrier | text | ||
rejection_reason | text | ||
preferred_months | text | ||
preferred_weekdays | text | ||
num_locations | text | ||
wellness_fair | boolean | ||
wellness_fair_date | date | ||
dental_day_booked | boolean | ||
dental_day_date | date | ||
email_encrypted | text | PHI | |
phone_encrypted | text | PHI | |
email_hash | text | PHI |
billing_audit_rules5 columns1 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
sort_order | integer | required | |
rule | jsonb | required | |
active | boolean | required | |
updated_at | timestamp with time zone | required |
bookings19 columns8 indexes3 FKs
Used by: Dashboard - Dental Days, AR Aging Report, Dental Day Production, Dental Days, Dental Day Status Report, Patient Count, Dental Day Patients, Dental Days Calendar, Request Cancel/Reschedule, Insurance Report by Dental Day, Ortho Sold by Dental Day, Patient Checkout / Billing, Online Bookings, Klaviyo Report, Candid Case Tracker – Field, Candid Case Tracker – Office
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
hubspot_id | text | required | FK → companies |
calendar_id | text | required | FK → calendars |
patient_id | integer | FK → patients | |
date | text | required | |
hour | integer | required | |
dentrix_office_id | text | ||
appointment_type | text | ||
smile_concerns | text | ||
dentrix_appointment_id | text | ||
source | text | ||
app | text | required | |
appointment_for | text | ||
created_at | timestamp with time zone | required | |
status | text | ||
operatory_id | text | ||
sync_skip_reason | text | ||
sync_skip_at | timestamp with time zone | ||
smile_concerns_encrypted | text | PHI |
calendar_operatory_splits5 columns3 indexes0 FKs
Used by: Dental Days, Operatory Splits, Request Cancel/Reschedule
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
calendar_id | text | required | |
date | text | required | |
operatory_dentrix_id | text | required | |
created_at | timestamp without time zone |
calendars22 columns5 indexes1 FKs
Used by: Dashboard - Dental Days, AR Aging Report, Dental Day Production, Dental Days, Operatory Splits, Dental Day Status Report, Patient Count, Dental Day Patients, Dental Days Calendar, HubSpot Companies, Request Cancel/Reschedule, Van Drive Time, Van Management, Insurance Report by Dental Day, Ortho Sold by Dental Day, Patient Checkout / Billing, Candid Case Tracker – Field, Candid Case Tracker – Office, Schedule, Flight Home Tickets, Staff Requested Time Off, Staff Schedule, Request Time Off, My Account, Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
short_code | text | required | |
hubspot_id | text | required | FK → companies |
calendar_name | text | required | |
hubspot_object_id | text | ||
dentrix_office_id | text | ||
dentrix_office_name | text | ||
dental_day_location | text | ||
street_address | text | ||
city | text | ||
state | text | ||
zip_code | text | ||
requested_by | text | ||
requested_by_name | text | ||
status | text | ||
approved_by | text | ||
approved_at | text | ||
created_at | timestamp with time zone | required | |
referred_by | text | ||
requested_by_email | text | ||
status_updated_at | timestamp with time zone | ||
whitening_perk | boolean | required |
callrail_calls45 columns3 indexes0 FKs
Used by: CallRail Leads
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
account_id | text | ||
company_id | text | ||
company_name | text | ||
started_at | timestamp with time zone | required | |
answered | boolean | ||
direction | text | ||
duration_seconds | integer | ||
first_call | boolean | ||
customer_name | text | ||
customer_phone | text | ||
customer_phone10 | text | ||
customer_city | text | ||
customer_state | text | ||
tracking_phone | text | ||
tracking_label | text | ||
source | text | ||
source_name | text | ||
medium | text | ||
campaign | text | ||
keywords | text | ||
referrer | text | ||
landing_page | text | ||
gclid | text | ||
utm_source | text | ||
utm_medium | text | ||
utm_campaign | text | ||
tags | text | ||
recording_url | text | ||
callrail_note | text | ||
callrail_value | numeric(12,2) | ||
lead_status | text | ||
lead_status_by | text | ||
lead_status_at | timestamp with time zone | ||
lead_notes | text | ||
lead_notes_by | text | ||
lead_notes_at | timestamp with time zone | ||
archived_at | timestamp with time zone | ||
archived_by | text | ||
synced_at | timestamp with time zone | ||
created_at | timestamp with time zone | ||
customer_name_encrypted | text | PHI | |
customer_phone_encrypted | text | PHI | |
customer_phone_hash | text | PHI | |
customer_city_encrypted | text | PHI |
candid_ortho_exclusions4 columns1 indexes0 FKs
Used by: Candid Case Tracker – Field, Candid Case Tracker – Office
| Column | Type | Null | Keys |
|---|---|---|---|
row_key | text | required | PK |
reason | text | required | |
excluded_by | text | ||
excluded_at | timestamp with time zone | required |
candid_patients68 columns5 indexes0 FKs
Used by: Candid Case Tracker – Field, Candid Case Tracker – Office
| Column | Type | Null | Keys |
|---|---|---|---|
candid_id | text | required | PK |
full_name | text | ||
first_name | text | ||
last_name | text | ||
phone | text | ||
status | text | ||
state | text | ||
birthday | date | ||
monitoring | text | ||
practice | text | ||
referring_dentist | text | ||
case_type | text | ||
case_status | text | ||
case_ref | text | ||
notes | text | ||
candid_created_at | timestamp with time zone | ||
first_seen_at | timestamp with time zone | required | |
synced_at | timestamp with time zone | required | |
is_active | boolean | required | |
email | text | ||
tracking_carrier | text | ||
tracking_id | text | ||
tracking_status | text | ||
tracking_url | text | ||
tracking_ship_date | timestamp with time zone | ||
tracking_eta | date | ||
tracking_synced_at | timestamp with time zone | ||
labels | text | ||
address_line1 | text | ||
address_line2 | text | ||
city | text | ||
state_code | text | ||
zip | text | ||
plan_steps | integer | ||
plan_state | text | ||
plan_synced_at | timestamp with time zone | ||
order_ref | text | ||
order_status | text | ||
order_placed_at | timestamp with time zone | ||
notified_order_status | text | ||
notified_tracking_status | text | ||
trigger_baseline_at | timestamp with time zone | ||
case_active | boolean | required | |
full_name_encrypted | text | PHI | |
first_name_encrypted | text | PHI | |
last_name_encrypted | text | PHI | |
email_encrypted | text | PHI | |
phone_encrypted | text | PHI | |
birthday_encrypted | text | PHI | |
address_line1_encrypted | text | PHI | |
address_line2_encrypted | text | PHI | |
city_encrypted | text | PHI | |
zip_encrypted | text | PHI | |
notes_encrypted | text | PHI | |
email_hash | text | PHI | |
phone_hash | text | PHI | |
name_hash | text | PHI | |
mon_status | text | ||
mon_current_step | integer | ||
mon_steps | integer | ||
mon_next_scan_due | timestamp with time zone | ||
mon_last_scan_at | timestamp with time zone | ||
mon_last_scan_outcome | text | ||
mon_stop_date | timestamp with time zone | ||
mon_est_end | timestamp with time zone | ||
mon_synced_at | timestamp with time zone | ||
tracking_delivered_at | timestamp with time zone | ||
candid_account | text | required |
candid_template_sends16 columns5 indexes0 FKs
Used by: Candid Case Tracker – Field, Candid Case Tracker – Office, Message Templates
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
template_key | text | required | |
candid_id | text | ||
patient_name | text | ||
to_email | text | required | |
subject | text | ||
status | text | required | |
error | text | ||
sent_by | text | ||
sent_at | timestamp with time zone | required | |
patient_name_encrypted | text | PHI | |
to_email_encrypted | text | PHI | |
channel | text | required | |
to_phone | text | ||
to_phone_encrypted | text | PHI | |
provider_id | text |
claim_audit_log15 columns5 indexes0 FKs
Used by: Billing Audit Log
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
dentrix_patient_id | text | ||
procedure_code | text | required | |
code_label | text | ||
category | text | ||
reviewer | text | required | |
baseline_checks | jsonb | required | |
inputs | jsonb | required | |
matched_rule | boolean | required | |
notes | text | required | |
created_at | timestamp with time zone | required | |
claim_id | text | required | |
status | text | required | |
notes_encrypted | text | PHI | |
inputs_encrypted | text | PHI |
clear_aligner_forms29 columns6 indexes4 FKs
Used by: Clear Aligners
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
dentrix_patient_id | text | required | FK → dh_patients |
form_date | date | required | |
aligner_brand | text | ||
diagnosed_by_provider_id | text | FK → dh_providers | |
expectations_encrypted | text | PHI | |
aligners_estimate | numeric(10,2) | ||
insurance_estimate | numeric(10,2) | ||
additional_discount | numeric(10,2) | ||
patient_estimate | numeric(10,2) | ||
retainer_sets | smallint | ||
total_with_retainers | numeric(10,2) | ||
patient_paid | numeric(10,2) | ||
amount_due | numeric(10,2) | ||
signature_encrypted | text | PHI | |
signature_date | date | ||
fmx_taken | boolean | ||
photos_taken | boolean | ||
entered_in_system | boolean | ||
video_sent | boolean | ||
consent_signed | boolean | ||
address_confirmed | boolean | ||
assistant_staff_id | integer | FK → staff | |
coordinator_staff_id | integer | FK → staff | |
created_by | text | ||
updated_by | text | ||
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required | |
deleted_at | timestamp with time zone |
companies17 columns5 indexes0 FKs
Used by: Dental Days, Operatory Splits, Dental Day Status Report, Patient Count, Dental Day Patients, Dental Days Calendar, HubSpot Companies, Request Cancel/Reschedule, Van Drive Time, Van Management, Insurance Report by Dental Day, Ortho Sold by Dental Day, Patient Checkout / Billing, Schedule, Flight Home Tickets, Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
slug | text | required | |
hubspot_id | text | required | |
name | text | required | |
logo_url | text | ||
website | text | ||
timezone | text | ||
domain | text | ||
street_address | text | ||
city | text | ||
state | text | ||
postal_code | text | ||
industry | text | ||
description | text | ||
phone | text | ||
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required |
dd_cancel_requests12 columns1 indexes0 FKs
Used by: Dental Days, Request Cancel/Reschedule
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
calendar_id | text | required | |
calendar_name | text | required | |
company_name | text | ||
action | text | required | |
reason | text | required | |
requested_by | text | required | |
new_date | text | ||
status | text | ||
approved_by | text | ||
approved_at | timestamp with time zone | ||
created_at | timestamp with time zone | required |
dd_low_booking_alerts5 columns1 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts
| Column | Type | Null | Keys |
|---|---|---|---|
calendar_id | text | required | PK |
date | text | required | PK |
days_out | integer | required | PK |
bookings | integer | required | |
sent_at | timestamp with time zone | required |
dd_staff_assignments9 columns4 indexes0 FKs
Used by: AR Aging Report, Dental Day Production, Van Drive Time, Van Management, Schedule, Flight Home Tickets, Staff Requested Time Off, Staff Schedule, Request Time Off, My Account, Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
calendar_id | text | required | |
schedule_date | text | required | |
position | text | required | |
staff_id | integer | ||
published_at | timestamp without time zone | ||
created_at | timestamp without time zone | ||
updated_at | timestamp without time zone | ||
pending | boolean | required |
dental_day_interest11 columns4 indexes0 FKs
Used by: Dental Day Interest
| Column | Type | Null | Keys |
|---|---|---|---|
id | uuid | required | PK |
form | text | required | |
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | ||
location | text | ||
language | text | ||
name_encrypted | text | PHI | |
email_encrypted | text | required | PHI |
email_hash | text | required | PHI |
legacy_id | text | ||
email_status | text |
dental_day_status_notes12 columns3 indexes0 FKs
Used by: Dental Day Status Report
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
calendar_id | text | required | |
date | text | required | |
tatiana_verified | text | required | |
lyric_addons_walkins | text | required | |
plan_notes | text | required | |
benefit_breakdown | text | required | |
created_at | timestamp with time zone | ||
updated_at | timestamp with time zone | ||
insurance | text | required | |
ppo_booking | text | required | |
insurance_encrypted | text | PHI |
dental_day_waitlist34 columns4 indexes0 FKs
Used by: Dental Day Waitlist
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
company_slug | text | required | |
company_name | text | ||
calendar_code | text | ||
calendar_name | text | ||
requested_date | date | ||
first_name | text | required | |
last_name | text | required | |
email | text | required | |
phone | text | ||
source | text | required | |
status | text | required | |
notes | text | ||
notes_by | text | ||
notes_at | timestamp with time zone | ||
status_by | text | ||
status_at | timestamp with time zone | ||
created_at | timestamp with time zone | required | |
preferred_time | text | ||
offer_sent_at | timestamp with time zone | ||
offer_slots | text | ||
booking_id | integer | ||
auto_book_error | text | ||
auto_book_tried_at | timestamp with time zone | ||
auto_book | boolean | required | |
preference | text | ||
booking_data_encrypted | text | PHI | |
first_name_encrypted | text | PHI | |
last_name_encrypted | text | PHI | |
email_encrypted | text | PHI | |
phone_encrypted | text | PHI | |
notes_encrypted | text | PHI | |
email_hash | text | PHI | |
phone_hash | text | PHI |
dentrix_adjustment_attempts13 columns2 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
patient_id | text | required | |
amount | numeric | required | |
ascend_user | text | ||
kind | text | ||
adjustment_type | text | ||
office | text | ||
emailed | boolean | required | |
created_at | timestamp with time zone | required | |
decision | text | ||
decision_note | text | ||
decided_by | text | ||
decided_at | timestamp with time zone |
dentrix_blocked_slots6 columns3 indexes1 FKs
Used by: no menu page — used by booking app, appointment app
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
calendar_id | text | required | FK → calendars |
date | text | required | |
hour | integer | required | |
count | integer | required | |
synced_at | timestamp with time zone | required |
dentrix_health_checks9 columns2 indexes0 FKs
Used by: Dentrix API Status
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
checked_at | timestamp with time zone | required | |
auth_ok | boolean | required | |
total_count | integer | required | |
ok_count | integer | required | |
down_count | integer | required | |
results | jsonb | ||
emailed | boolean | required | |
recovered | boolean | required |
dentrix_health_results7 columns2 indexes1 FKs
Used by: Dentrix API Status
| Column | Type | Null | Keys |
|---|---|---|---|
check_id | integer | required | PK FK → dentrix_health_checks |
path | text | required | PK |
ok | boolean | required | |
status | text | required | |
ms | integer | required | |
error | text | ||
rate_limited | boolean | required |
dentrix_offices20 columns5 indexes0 FKs
Used by: Dashboard - Dental Days, Treatment Tracking, Follow Up Report, Waitlist, Production Tracking, Adjustment Summary EOD, Insurance Claims Paid, AR Aging Report, Provider A/R Detail Report, Dental Day ROI Report: By Month, Office ROI Report: By Month, Dental Day Production, Payments, Office Payments, Deposit Slip Report, Collection Report - Keith, Outstanding Claims, Unsent Claims, Unsent Claims History, Accounting Report, LEDGER Report, Payment Plan Report, Dental Days, Operatory Splits, Dental Day Status Report, Patient Count, Dental Day Patients, Dental Days Calendar, Smiles Delivered, Request Cancel/Reschedule, Van Drive Time, Van Management, Insurance Report by Dental Day, Ortho Sold by Dental Day, Patient Checkout / Billing, Appeals & Denials, Appeals & Denial Summary, Online Bookings, Referred By Patients, Referral Summary, Klaviyo Report, Patient ROI, Procedure ROI, Sales Entries, Schedule, Flight Home Tickets, Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations, Appointments, Patients, Providers, Office Locations, Dentrix API Status
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
dentrix_id | text | required | |
name | text | required | |
app | text | required | |
address | text | ||
city | text | ||
state | text | ||
postal_code | text | ||
zip | text | ||
phone | text | ||
latitude | text | ||
longitude | text | ||
timezone | text | ||
active | boolean | ||
created_at | timestamp with time zone | required | |
display_name | text | ||
stripe_account_id | text | ||
payments_enabled | boolean | required | |
pay_slug | text | ||
public_phone | text |
dh_api_keys8 columns1 indexes0 FKs
Used by: Sessions & access checks
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
name | text | required | |
key_hash | text | required | PHI |
user_id | text | ||
permissions | text | ||
status | text | ||
last_used_at | timestamp with time zone | ||
created_at | timestamp with time zone |
dh_appointments16 columns8 indexes0 FKs
Used by: Waitlist, AR Aging Report, Dental Day Production, Smiles Delivered, Klaviyo Report, Patient ROI, Candid Case Tracker – Field, Candid Case Tracker – Office, Appointments, Patients, Providers
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
patient_id | text | ||
provider_id | text | ||
start_time | text | required | |
end_time | text | required | |
status | text | ||
type | text | ||
notes | text | ||
source | text | ||
source_id | text | ||
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required | |
location_id | text | ||
operatory_id | text | ||
mapped_to_booking | boolean | ||
notes_encrypted | text | PHI |
dh_claim_notes8 columns2 indexes0 FKs
Used by: Outstanding Claims, Candid Case Tracker – Field, Candid Case Tracker – Office
| Column | Type | Null | Keys |
|---|---|---|---|
note_id | text | required | PK |
claim_id | text | required | |
note_date | text | ||
source | text | ||
note_text | text | ||
claim_state | text | ||
synced_at | timestamp with time zone | ||
note_text_encrypted | text | PHI |
dh_claim_patient_sync3 columns2 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts
| Column | Type | Null | Keys |
|---|---|---|---|
patient_id | text | required | PK |
checked_at | timestamp with time zone | required | |
claims_seen | integer | required |
dh_claim_procedures15 columns4 indexes0 FKs
Used by: Treatment Tracking, Follow Up Report, AR Aging Report, Dental Day Production, Payments, Unsent Claims, Patient Checkout / Billing, Candid Case Tracker – Field, Candid Case Tracker – Office
| Column | Type | Null | Keys |
|---|---|---|---|
claim_id | text | required | PK |
procedure_id | text | required | PK |
patient_id | text | ||
service_date | text | ||
claim_state | text | ||
payment_responsibility_order | integer | required | |
patient_portion | numeric(12,2) | required | |
original_patient_portion | numeric(12,2) | required | |
primary_insurance_portion | numeric(12,2) | required | |
secondary_insurance_portion | numeric(12,2) | required | |
write_off | numeric(12,2) | required | |
total_charges | numeric(12,2) | ||
synced_at | timestamp with time zone | required | |
is_active | boolean | required | |
claim_last_modified | text |
dh_claims17 columns5 indexes0 FKs
Used by: Outstanding Claims, Candid Case Tracker – Field, Candid Case Tracker – Office
| Column | Type | Null | Keys |
|---|---|---|---|
claim_id | text | required | PK |
patient_id | text | ||
service_date | text | ||
claim_state | text | ||
total_charges | numeric(12,2) | ||
payment_responsibility_order | integer | ||
is_active | boolean | ||
claim_last_modified | text | ||
last_note_at | text | ||
last_note_source | text | ||
notes_synced_at | timestamp with time zone | ||
synced_at | timestamp with time zone | ||
subscriber_number | text | ||
last_note_text | text | ||
note_count | integer | ||
subscriber_number_encrypted | text | PHI | |
last_note_text_encrypted | text | PHI |
dh_dcode_categories5 columns1 indexes0 FKs
Used by: Klaviyo Report, D Code Counts, Procedure ROI
| Column | Type | Null | Keys |
|---|---|---|---|
ada_code | text | required | PK |
category | text | required | |
ada_code_range_start | text | ||
ada_code_range_end | text | ||
description | text |
dh_follow_ups19 columns1 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts, appointment app
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
patient_id | text | ||
provider_id | text | ||
appointment_id | text | ||
type | text | ||
status | text | ||
notes | text | ||
due_date | text | ||
completed_at | timestamp with time zone | ||
created_at | timestamp with time zone | ||
updated_at | timestamp with time zone | ||
date_presented | text | ||
treatment_type | text | ||
followup_24hr_datetime | text | ||
followup_24hr_outcome | text | ||
email_3day_date | text | ||
call_7day_outcome | text | ||
monthly_followup_outcome | text | ||
final_status | text |
dh_insured_patient_ids2 columns1 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts
| Column | Type | Null | Keys |
|---|---|---|---|
dentrix_id | text | required | PK |
synced_at | timestamp with time zone | required |
dh_ledger_distributions4 columns2 indexes0 FKs
Used by: AR Aging Report, Dental Day Production, Payments
| Column | Type | Null | Keys |
|---|---|---|---|
transaction_id | text | required | PK |
charge_id | text | required | PK |
applied_amount | numeric(12,2) | ||
is_active | boolean |
dh_ledger_transactions14 columns7 indexes0 FKs
Used by: Adjustment Summary EOD, AR Aging Report, Dental Day Production, Payments, Outstanding Claims, Referred By Patients, Referral Summary, Candid Case Tracker – Field, Candid Case Tracker – Office, Sales Dashboard, Sales Entries, Sales Settings
| Column | Type | Null | Keys |
|---|---|---|---|
transaction_id | text | required | PK |
transaction_date | date | ||
ledger_type | text | ||
org_ledger_type_id | text | ||
location_id | text | ||
provider_id | text | ||
patient_id | text | ||
amount | numeric(12,2) | ||
is_active | boolean | ||
synced_at | timestamp with time zone | required | |
insurance_claim_id | text | ||
patient_procedure_id | text | ||
online_user_id | text | ||
is_auto_posted | boolean |
dh_ledger_types3 columns1 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts
| Column | Type | Null | Keys |
|---|---|---|---|
org_ledger_type_id | text | required | PK |
name | text | ||
synced_at | timestamp with time zone | required |
dh_nexhealth_locations5 columns1 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts, appointment app
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
nexhealth_id | text | ||
name | text | ||
location_id | text | ||
created_at | timestamp with time zone |
dh_next_appointments4 columns2 indexes0 FKs
Used by: Landing Page Leads, Referred By Patients, Referral Summary
| Column | Type | Null | Keys |
|---|---|---|---|
patient_id | text | required | PK |
next_date | date | ||
status | text | ||
checked_at | timestamp with time zone | required |
dh_online_users3 columns1 indexes0 FKs
Used by: Adjustment Summary EOD
| Column | Type | Null | Keys |
|---|---|---|---|
user_id | text | required | PK |
name | text | ||
fetched_at | timestamp with time zone | required |
dh_patient_balances13 columns3 indexes0 FKs
Used by: Unsent Claims, Referred By Patients, Referral Summary, Candid Case Tracker – Field, Candid Case Tracker – Office, Sales Dashboard, Sales Entries, Sales Settings
| Column | Type | Null | Keys |
|---|---|---|---|
patient_id | text | required | PK |
balance | numeric(12,2) | ||
current_amt | numeric(12,2) | ||
thirty_days | numeric(12,2) | ||
sixty_days | numeric(12,2) | ||
ninety_days | numeric(12,2) | ||
insurance_portion | numeric(12,2) | ||
patient_portion | numeric(12,2) | ||
write_off_adjustments | numeric(12,2) | ||
suspended_credits | numeric(12,2) | ||
please_pay_amount | numeric(12,2) | ||
fetched_at | timestamp with time zone | required | |
stale_since | timestamp with time zone |
dh_patient_procedures18 columns8 indexes0 FKs
Used by: Treatment Tracking, Follow Up Report, Waitlist, AR Aging Report, Dental Day Production, Payments, Insurance Report by Dental Day, Ortho Sold by Dental Day, Patient Checkout / Billing, Landing Page Leads, CallRail Leads, Referred By Patients, Referral Summary, Klaviyo Report, D Code Counts, Patient ROI, Procedure ROI, Candid Case Tracker – Field, Candid Case Tracker – Office, Sales Dashboard, Sales Entries, Sales Settings
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
patient_id | text | required | |
practice_procedure_id | text | required | |
ada_code | text | ||
description | text | ||
category | text | ||
status | text | required | |
amount | numeric(14,2) | ||
service_date | text | ||
entry_date | text | ||
location_id | text | ||
provider_id | text | ||
bill_to_insurance | boolean | ||
referred_out | boolean | ||
synced_at | timestamp with time zone | ||
teeth | text | ||
state | text | required | |
state_checked_at | timestamp with time zone |
dh_patient_referrals8 columns2 indexes0 FKs
Used by: Referred By Patients, Referral Summary
| Column | Type | Null | Keys |
|---|---|---|---|
patient_id | text | required | PK |
referral_kind | text | ||
referral_name | text | ||
referred_by_patient_id | text | ||
referral_source_id | text | ||
preferred_location_id | text | ||
fetched_at | timestamp with time zone | required | |
referral_name_encrypted | text | PHI |
dh_patient_visits4 columns0 indexes0 FKsview
A view (saved query, no data of its own) over dh_appointments. Used by: Waitlist
| Column | Type | Null | Keys |
|---|---|---|---|
patient_id | text | ||
last_visit_at | timestamp with time zone | ||
next_visit_at | timestamp with time zone | ||
latest_visit_at | timestamp with time zone |
dh_patients45 columns11 indexes0 FKs
Used by: Treatment Tracking, Follow Up Report, Waitlist, Adjustment Summary EOD, AR Aging Report, Dental Day Production, Payments, LEDGER Report, Dental Days, Dental Day Status Report, Dental Day Patients, Insurance Report by Dental Day, Ortho Sold by Dental Day, Patient Checkout / Billing, Billing Audit Log, Online Bookings, Landing Page Leads, CallRail Leads, Referred By Patients, Referral Summary, Klaviyo Report, Candid Case Tracker – Field, Candid Case Tracker – Office, Sales Dashboard, Sales Entries, Sales Settings, Clear Aligners, Appointments, Patients, Dentrix API Status, Patient Records
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
email | text | ||
phone | text | ||
first_name | text | ||
middle_name | text | ||
last_name | text | ||
gender | text | ||
date_of_birth | text | ||
address_line1 | text | ||
address_city | text | ||
address_state | text | ||
address_zip | text | ||
nexhealth_id | text | ||
dentrix_id | text | ||
acuity_id | text | ||
hubspot_id | text | ||
klaviyo_profile_id | text | ||
graph_contact_id | text | ||
is_active | boolean | ||
chart_number | text | ||
preferred_location_id | text | ||
contact_method | text | ||
language_type | text | ||
title | text | ||
name_suffix | text | ||
patient_status | text | ||
primary_source | text | ||
last_synced_at | timestamp with time zone | ||
insurance_eligible | boolean | ||
insurance_checked_at | timestamp with time zone | ||
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required | |
first_name_encrypted | text | PHI | |
last_name_encrypted | text | PHI | |
middle_name_encrypted | text | PHI | |
email_encrypted | text | PHI | |
phone_encrypted | text | PHI | |
dob_encrypted | text | PHI | |
address_encrypted | text | PHI | |
city_encrypted | text | PHI | |
state_encrypted | text | PHI | |
email_hash | text | PHI | |
phone_hash | text | PHI | |
name_hash | text | PHI | |
zip_encrypted | text | PHI |
dh_practice_procedures10 columns3 indexes0 FKs
Used by: Waitlist
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
ada_code | text | required | |
description | text | required | |
abbreviated_description | text | ||
category | text | ||
treatment_area | text | ||
fee | numeric(14,2) | ||
favorite | boolean | ||
active | boolean | ||
synced_at | timestamp with time zone |
dh_procedures_current18 columns0 indexes0 FKsview
A view (saved query, no data of its own) over dh_patient_procedures. Used by: Waitlist, AR Aging Report, Dental Day Production, Payments, Insurance Report by Dental Day, Ortho Sold by Dental Day, Patient Checkout / Billing, Landing Page Leads, CallRail Leads, Referred By Patients, Referral Summary, Klaviyo Report, D Code Counts, Patient ROI, Procedure ROI, Candid Case Tracker – Field, Candid Case Tracker – Office, Sales Dashboard, Sales Entries, Sales Settings
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | ||
patient_id | text | ||
practice_procedure_id | text | ||
ada_code | text | ||
description | text | ||
category | text | ||
status | text | ||
amount | numeric(14,2) | ||
service_date | text | ||
entry_date | text | ||
location_id | text | ||
provider_id | text | ||
bill_to_insurance | boolean | ||
referred_out | boolean | ||
synced_at | timestamp with time zone | ||
teeth | text | ||
state | text | ||
state_checked_at | timestamp with time zone |
dh_provider_locations4 columns2 indexes0 FKs
Used by: no menu page — used by appointment app
| Column | Type | Null | Keys |
|---|---|---|---|
provider_id | text | required | PK |
location_id | text | required | PK |
dentrix_id | text | ||
created_at | timestamp with time zone |
dh_providers15 columns3 indexes0 FKs
Used by: Treatment Tracking, AR Aging Report, Dental Day Production, Request Cancel/Reschedule, Clear Aligners, Appointments, Providers, Patient Records
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
dentrix_id | text | ||
first_name | text | required | |
last_name | text | required | |
short_name | text | ||
title | text | ||
specialty | text | ||
email | text | ||
status | text | ||
nexhealth_id | text | ||
acuity_id | text | ||
graph_user_id | text | ||
hubspot_label | text | ||
source | text | ||
created_at | timestamp with time zone |
dh_rate_limits2 columns2 indexes0 FKs
Used by: Rate limits
| Column | Type | Null | Keys |
|---|---|---|---|
key | text | required | |
timestamp | bigint | required |
dh_referral_sources3 columns1 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts
| Column | Type | Null | Keys |
|---|---|---|---|
source_id | text | required | PK |
name | text | ||
fetched_at | timestamp with time zone | required |
dh_sync_events17 columns3 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts, appointment app
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
source | text | ||
entity_type | text | ||
status | text | ||
records_processed | integer | ||
records_failed | integer | ||
error_message | text | ||
started_at | timestamp with time zone | ||
completed_at | timestamp with time zone | ||
created_at | timestamp with time zone | ||
entity_id | text | ||
service_entity_id | text | ||
action | text | ||
direction | text | ||
old_data | text | ||
new_data | text | ||
raw_payload | text |
dh_sync_state5 columns1 indexes0 FKs
Used by: Treatment Tracking, Follow Up Report, Waitlist, Outstanding Claims, D Code Counts, Candid Case Tracker – Field, Candid Case Tracker – Office, Dentrix API Status
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
last_synced_at | timestamp with time zone | ||
last_id | text | ||
last_modified | text | ||
extra | text |
dh_user_access4 columns2 indexes1 FKs
Used by: Van Management, Staff, Schedule, User Management, Sign in, Accept invite, Sessions & access checks
| Column | Type | Null | Keys |
|---|---|---|---|
user_id | text | required | PK FK → dh_users |
access_key | text | required | PK |
position | smallint | required | |
created_at | timestamp with time zone | required |
dh_users15 columns5 indexes1 FKs
Used by: Van Management, Staff, Schedule, Staff Requested Time Off, Staff Schedule, Request Time Off, My Account, Change Password, Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations, User Management, Sign in, Forgot password, Reset password, Accept invite, Sessions & access checks
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
email | text | required | |
name | text | required | |
password_hash | text | required | PHI |
role | text | required | |
access | jsonb | required | |
status | text | required | |
last_login_at | timestamp with time zone | ||
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required | |
failed_login_count | integer | required | |
failed_login_window_start | timestamp with time zone | ||
locked_until | timestamp with time zone | ||
staff_id | integer | FK → staff | |
password_changed_at | timestamp with time zone |
email_notify_types4 columns1 indexes0 FKs
Used by: Email Management
| Column | Type | Null | Keys |
|---|---|---|---|
key | text | required | PK |
label | text | required | |
sort_order | smallint | required | |
created_at | timestamp with time zone | required |
email_recipient_notify_types2 columns2 indexes2 FKs
Used by: Staff Requested Time Off, Staff Schedule, Request Time Off, My Account, Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations, Email Management
| Column | Type | Null | Keys |
|---|---|---|---|
recipient_id | integer | required | PK FK → email_recipients |
notify_type | text | required | PK FK → email_notify_types |
email_recipients11 columns3 indexes0 FKs
Used by: Adjustment Summary EOD, Dental Days, Operatory Splits, Request Cancel/Reschedule, Staff Requested Time Off, Staff Schedule, Request Time Off, My Account, Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations, Email Management, Dentrix API Status
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
email | text | required | |
email_type | text | required | |
name | text | ||
active | boolean | required | |
notify_approval | boolean | ||
notify_cancel_reschedule | boolean | ||
notify_types | text | ||
phone | text | ||
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required |
email_sends16 columns4 indexes0 FKs
Used by: Adjustment Summary EOD, Payments, Unsent Claims, Dental Days, Operatory Splits, Dental Day Waitlist, Request Cancel/Reschedule, Van Management, Conference Leads, Staff, Schedule, Staff Requested Time Off, Staff Schedule, Request Time Off, My Account, Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations, Email Templates, User Management, Dentrix API Status, Forgot password
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
template_key | text | required | |
app | text | required | |
to_email | text | ||
recipients | integer | required | |
subject | text | ||
lang | text | required | |
status | text | required | |
error | text | ||
ref | text | ||
sent_by | text | ||
sent_at | timestamp with time zone | required | |
to_email_encrypted | text | PHI | |
to_email_hash | text | PHI | |
subject_encrypted | text | PHI | |
provider | text |
email_templates24 columns2 indexes0 FKs
Used by: Adjustment Summary EOD, Payments, Unsent Claims, Dental Days, Operatory Splits, Request Cancel/Reschedule, Van Management, Message Templates, Conference Leads, Staff, Schedule, Staff Requested Time Off, Staff Schedule, Request Time Off, My Account, Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations, Email Templates, User Management, Dentrix API Status, Forgot password
| Column | Type | Null | Keys |
|---|---|---|---|
key | text | required | PK |
name | text | required | |
audience | text | required | |
app | text | required | |
category | text | required | |
description | text | ||
variables | jsonb | required | |
subject_en | text | required | |
body_en | text | required | |
subject_es | text | ||
body_es | text | ||
from_email | text | ||
reply_to | text | ||
trigger_event | text | ||
active | boolean | required | |
updated_by | text | ||
updated_at | timestamp with time zone | required | |
created_at | timestamp with time zone | required | |
to_emails | text | ||
bcc_emails | text | ||
send_via | text | required | |
sms_en | text | ||
sms_es | text | ||
sms_active | boolean | required |
equipment_repairs22 columns1 indexes0 FKs
Used by: Dental Days, Dental Days Calendar, Van Drive Time, Van Management, Equipment Repairs, Schedule
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
product | text | required | |
status | text | required | |
create_date | date | required | |
return_date | date | ||
point_of_contact | text | ||
vendor | text | ||
loaner | boolean | required | |
loaner_details | text | ||
serial_number | text | ||
van_name | text | ||
cost | numeric | ||
notes | text | ||
created_by | text | ||
updated_by | text | ||
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required | |
loaner_received_date | date | ||
loaner_return_date | date | ||
location | text | ||
shipping_address | text | ||
delivery_address | text |
flight_home_tickets10 columns4 indexes3 FKs
Used by: Flight Home Tickets
| Column | Type | Null | Keys |
|---|---|---|---|
staff_id | integer | required | PK FK → staff |
dental_date | date | required | PK |
available | boolean | ||
from_airport | character(3) | FK → airports | |
flight | text | ||
cost | numeric(10,2) | ||
departs | time without time zone | ||
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required | |
updated_by | text | FK → dh_users |
geocode_cache6 columns1 indexes0 FKs
Used by: Dental Days, Van Drive Time, Van Management, Schedule, Flight Home Tickets
| Column | Type | Null | Keys |
|---|---|---|---|
address | text | required | PK |
latitude | double precision | ||
longitude | double precision | ||
provider | text | required | |
found | boolean | required | |
looked_up_at | timestamp with time zone | required |
hipaa_migration_runs13 columns1 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
script | text | required | |
target | text | required | |
mode | text | required | |
environment | text | required | |
rows_seen | integer | required | |
rows_changed | integer | required | |
rows_failed | integer | required | |
last_key | text | ||
notes | text | ||
run_by | text | ||
started_at | timestamp with time zone | required | |
finished_at | timestamp with time zone |
insurance_cards8 columns2 indexes0 FKs
Used by: no menu page — used by booking app, appointment app
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
booking_id | integer | required | |
patient_id | integer | ||
front_key | text | ||
back_key | text | ||
created_at | timestamp without time zone | ||
dentrix_document_front_id | text | ||
dentrix_document_back_id | text |
insurance_report_notes6 columns1 indexes0 FKs
Used by: Insurance Report by Dental Day
| Column | Type | Null | Keys |
|---|---|---|---|
calendar_id | text | required | PK |
date | date | required | PK |
note | text | required | |
updated_by | text | ||
updated_at | timestamp with time zone | required | |
created_at | timestamp with time zone | required |
large_adjustment_alerts11 columns2 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts
| Column | Type | Null | Keys |
|---|---|---|---|
transaction_id | text | required | PK |
patient_id | text | ||
amount | numeric(12,2) | required | |
ledger_type | text | ||
type_name | text | ||
entered_by | text | ||
location_id | text | ||
transaction_date | text | ||
entered_at | text | ||
emailed_at | timestamp with time zone | ||
created_at | timestamp with time zone | required |
lifenet_waitlist6 columns3 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts, popupsmiles.com, B2B site
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
created_at | text | required | |
location | text | required | |
name | text | required | |
email | text | required | |
language | text | required |
office_payments27 columns4 indexes0 FKs
Used by: Office Payments
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
stripe_payment_intent_id | text | required | |
stripe_charge_id | text | ||
office_slug | text | required | |
office_name | text | required | |
office_dentrix_id | text | required | |
connected_account_id | text | ||
amount_cents | integer | required | |
currency | text | required | |
status | text | required | |
payment_method | text | ||
first_name | text | ||
last_name | text | ||
email | text | ||
phone | text | ||
billing_address | jsonb | ||
shipping_address | jsonb | ||
livemode | boolean | required | |
failure_message | text | ||
created_at | timestamp with time zone | required | |
paid_at | timestamp with time zone | ||
updated_at | timestamp with time zone | required | |
first_name_encrypted | text | PHI | |
last_name_encrypted | text | PHI | |
email_encrypted | text | PHI | |
phone_encrypted | text | PHI | |
billing_address_encrypted | text | PHI |
office_subscriptions23 columns3 indexes0 FKs
Used by: Office Payments
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
stripe_subscription_id | text | required | |
stripe_customer_id | text | required | |
plan_slug | text | ||
office_slug | text | required | |
office_name | text | required | |
office_dentrix_id | text | required | |
amount_cents | integer | required | |
currency | text | required | |
interval | text | ||
status | text | required | |
first_name | text | ||
last_name | text | ||
email | text | ||
phone | text | ||
current_period_end | timestamp with time zone | ||
cancel_at | timestamp with time zone | ||
canceled_at | timestamp with time zone | ||
last_invoice_status | text | ||
last_payment_failed_at | timestamp with time zone | ||
livemode | boolean | required | |
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required |
operatories10 columns3 indexes0 FKs
Used by: Dental Days, Operatory Splits, Dental Day Patients, Request Cancel/Reschedule, Online Bookings, Schedule, Office Locations
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
dentrix_id | text | required | |
name | text | required | |
short_name | text | ||
office_id | text | required | |
app | text | required | |
active | boolean | ||
use_for_booking | boolean | ||
created_at | timestamp with time zone | ||
synced_at | timestamp with time zone |
ortho_tracker_cache4 columns1 indexes0 FKs
Used by: Candid Case Tracker – Field, Candid Case Tracker – Office
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
data_encrypted | text | required | PHI |
row_count | integer | required | |
built_at | timestamp with time zone | required |
ortho_tracker_manual8 columns1 indexes0 FKs
Used by: Candid Case Tracker – Field, Candid Case Tracker – Office
| Column | Type | Null | Keys |
|---|---|---|---|
row_key | text | required | PK |
treatment_status | text | ||
tray_status | text | ||
updated_by | text | ||
updated_at | timestamp with time zone | required | |
notes_encrypted | text | PHI | |
notes_updated_by | text | ||
notes_updated_at | timestamp with time zone |
outstanding_claim_tracking14 columns1 indexes0 FKs
Used by: Outstanding Claims
| Column | Type | Null | Keys |
|---|---|---|---|
claim_key | text | required | PK |
claim_status | text | ||
insurance_paid | numeric(12,2) | ||
write_off | numeric(12,2) | ||
last_followup_date | date | ||
next_followup_date | date | ||
payer_contact | text | ||
call_reference | text | ||
notes | text | ||
assigned_to | text | ||
resolution_date | date | ||
updated_by | text | ||
updated_at | timestamp with time zone | required | |
notes_encrypted | text | PHI |
patient_email_logs10 columns1 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts, appointment app
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
calendar_id | text | required | |
calendar_name | text | required | |
patient_name | text | ||
patient_email | text | ||
email_type | text | required | |
status | text | required | |
created_at | timestamp with time zone | required | |
patient_name_encrypted | text | PHI | |
patient_email_encrypted | text | PHI |
patient_tracking_cache14 columns3 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
location_id | text | required | |
location_name | text | required | |
period | text | required | |
new_patients | integer | required | |
active_patients | integer | required | |
total_appointments | integer | required | |
no_shows | integer | required | |
broken | integer | required | |
cancelled | integer | required | |
synced_at | timestamp with time zone | ||
recare_patients | integer | required | |
hygiene_mtd | integer | required | |
retention_18m | real | required |
patients31 columns6 indexes1 FKs
Used by: AR Aging Report, Dental Day Production, Dental Days, Dental Day Status Report, Patient Count, Dental Day Patients, Request Cancel/Reschedule, Insurance Report by Dental Day, Ortho Sold by Dental Day, Patient Checkout / Billing, Online Bookings, Klaviyo Report
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
hubspot_id | text | required | FK → companies |
email_encrypted | text | required | PHI |
phone_encrypted | text | PHI | |
first_name_encrypted | text | PHI | |
last_name_encrypted | text | PHI | |
dob_encrypted | text | PHI | |
ssn_encrypted | text | PHI | |
insurance_encrypted | text | PHI | |
insurance_id_encrypted | text | PHI | |
address_encrypted | text | PHI | |
city_encrypted | text | PHI | |
state_encrypted | text | PHI | |
legal_sex | text | ||
zip_code | text | ||
has_insurance | boolean | ||
insurance_carrier_id | text | ||
insurance_plan_id | text | ||
dentrix_patient_id | text | ||
patient_type | text | ||
source | text | ||
app | text | required | |
guardian_first_name_encrypted | text | PHI | |
guardian_last_name_encrypted | text | PHI | |
guardian_legal_sex | text | ||
guardian_dob_encrypted | text | PHI | |
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required | |
email_hash | text | PHI | |
phone_hash | text | PHI | |
zip_encrypted | text | PHI |
payment_plan_cards17 columns3 indexes0 FKs
Used by: Payment Plan Report
| Column | Type | Null | Keys |
|---|---|---|---|
id | bigint | required | PK |
plan_key | text | required | |
card_number_enc | text | required | |
card_last4 | text | required | |
card_brand | text | ||
exp_month | integer | required | |
exp_year | integer | required | |
first_name_enc | text | ||
last_name_enc | text | ||
address_enc | text | ||
city_enc | text | ||
state_enc | text | ||
zip_enc | text | ||
created_by | text | ||
updated_by | text | ||
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required |
payment_plans13 columns2 indexes0 FKs
Used by: no menu page — used by popupsmiles.com, B2B site
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
slug | text | required | |
name | text | required | |
description | text | ||
amount_cents | integer | required | |
currency | text | required | |
interval | text | required | |
interval_count | integer | required | |
office_dentrix_id | text | ||
stripe_price_id | text | ||
active | boolean | required | |
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required |
payment_requests23 columns5 indexes0 FKs
Used by: Payments
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
token_hash | text | required | PHI |
office_dentrix_id | text | required | |
patient_id | text | required | |
amount_cents | integer | required | |
items | jsonb | required | |
note | text | ||
sent_to_email | text | ||
sent_to_phone | text | ||
channels | text[] | required | |
status | text | required | |
created_by | text | ||
created_at | timestamp with time zone | required | |
expires_at | timestamp with time zone | required | |
emailed_at | timestamp with time zone | ||
paid_at | timestamp with time zone | ||
paid_amount_cents | integer | ||
stripe_payment_intent_id | text | ||
cancelled_at | timestamp with time zone | ||
cancelled_by | text | ||
ledger_posted_at | timestamp with time zone | ||
ledger_posted_by | text | ||
token_encrypted | text | PHI |
provider_ar_daily13 columns0 indexes0 FKsview
A view (saved query, no data of its own) over agent_provider_ar_detail. Used by: Production Tracking
| Column | Type | Null | Keys |
|---|---|---|---|
office_id | text | ||
date | date | ||
provider | text | ||
net_production | numeric | ||
gross_production | numeric | ||
collection | numeric | ||
procedure_charges | numeric | ||
production_charge_adj | numeric | ||
production_credit_adj | numeric | ||
payments | numeric | ||
collection_charge_adj | numeric | ||
collection_credit_adj | numeric | ||
captured_at | timestamp with time zone |
providers15 columns2 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts, booking app, appointment app, Dentrix agent, popupsmiles.com, B2B site
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
dentrix_id | text | required | |
first_name | text | required | |
last_name | text | required | |
short_name | text | ||
title | text | ||
specialty | text | ||
email | text | ||
status | text | ||
nexhealth_id | text | ||
acuity_id | text | ||
graph_user_id | text | ||
hubspot_label | text | ||
source | text | ||
created_at | timestamp with time zone |
rate_limits2 columns2 indexes0 FKs
Used by: no menu page — used by booking app, appointment app
| Column | Type | Null | Keys |
|---|---|---|---|
key | text | required | |
timestamp | bigint | required |
route_leg_cache11 columns1 indexes0 FKs
Used by: Dental Days, Van Drive Time, Van Management, Schedule, Flight Home Tickets
| Column | Type | Null | Keys |
|---|---|---|---|
from_lat | numeric(9,5) | required | PK |
from_lng | numeric(9,5) | required | PK |
to_lat | numeric(9,5) | required | PK |
to_lng | numeric(9,5) | required | PK |
drive_seconds | integer | ||
drive_meters | integer | ||
provider | text | required | |
found | boolean | required | |
looked_up_at | timestamp with time zone | required | |
drive_seconds_static | integer | ||
polyline | text |
sales_entries35 columns9 indexes7 FKs
Used by: Sales Dashboard, Sales Entries, Sales Settings
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
patient_type | text | required | |
acceptance_status | text | ||
entry_date | date | required | |
patient_name_encrypted | text | PHI | |
accepted_date | date | ||
presented_1 | numeric(12,2) | ||
presented_2 | numeric(12,2) | ||
sold | numeric(12,2) | ||
collected | numeric(12,2) | ||
insurance | numeric(12,2) | ||
outstanding_balance | numeric(12,2) | ||
refunds | numeric(12,2) | ||
approved | numeric(12,2) | ||
funded | numeric(12,2) | ||
merchant_fee_rate | numeric(6,4) | ||
sales_stage | text | ||
treatment_encrypted | text | PHI | |
notes_encrypted | text | PHI | |
status | text | ||
notes2_encrypted | text | PHI | |
follow_ups_encrypted | text | PHI | |
created_by | text | ||
created_at | timestamp with time zone | required | |
updated_by | text | ||
updated_at | timestamp with time zone | required | |
deleted_at | timestamp with time zone | ||
deleted_by | text | ||
provider_id | integer | FK → sales_options | |
assistant_id | integer | FK → sales_options | |
coordinator_id | integer | FK → sales_options | |
referral_source_id | integer | FK → sales_options | |
case_type_id | integer | FK → sales_options | |
lender_id | integer | FK → sales_options | |
dentrix_patient_id | text | FK → dh_patients |
sales_options14 columns4 indexes0 FKs
Used by: Sales Dashboard, Sales Entries, Sales Settings
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
list_key | text | required | |
name | text | required | |
rate | numeric(6,4) | ||
sort | integer | required | |
source | text | required | |
external_id | text | ||
active | boolean | required | |
deleted_at | timestamp with time zone | ||
deleted_by | text | ||
created_by | text | ||
created_at | timestamp with time zone | required | |
updated_by | text | ||
updated_at | timestamp with time zone | required |
sales_settings4 columns1 indexes0 FKs
Used by: Sales Dashboard, Sales Entries, Sales Settings
| Column | Type | Null | Keys |
|---|---|---|---|
key | text | required | PK |
value | jsonb | required | |
updated_by | text | ||
updated_at | timestamp with time zone | required |
schedules15 columns4 indexes2 FKs
Used by: Dashboard - Dental Days, AR Aging Report, Dental Day Production, Dental Days, Operatory Splits, Dental Day Status Report, Patient Count, Dental Day Patients, Dental Days Calendar, Request Cancel/Reschedule, Van Drive Time, Van Management, Insurance Report by Dental Day, Ortho Sold by Dental Day, Candid Case Tracker – Field, Candid Case Tracker – Office, Schedule, Flight Home Tickets, Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
hubspot_id | text | required | FK → companies |
calendar_id | text | required | FK → calendars |
date | text | required | |
start_hour | real | required | |
end_hour | real | required | |
capacity | integer | required | |
primary_dentist | text | ||
manual_bookings | integer | ||
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required | |
van_name | text | ||
setup_datetime | text | ||
arrival_datetime | text | ||
last_publish_signature | text |
skyland_waitlist6 columns3 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts, popupsmiles.com, B2B site
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
created_at | text | required | |
location | text | required | |
name | text | required | |
email | text | required | |
language | text | required |
staff45 columns4 indexes0 FKs
Used by: AR Aging Report, Dental Day Production, Van Drive Time, Van Management, Clear Aligners, Staff, Schedule, Flight Home Tickets, Staff Requested Time Off, Staff Schedule, Request Time Off, My Account, Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations, Sign in, Accept invite, Sessions & access checks
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
first_name | text | required | |
last_name | text | required | |
position | text | ||
employment_type | text | ||
work_email | text | ||
personal_email | text | ||
cell_phone | text | ||
work_phone_extension | text | ||
address | text | ||
city | text | ||
state | text | ||
zip | text | ||
dob_encrypted | text | PHI | |
dl_number_encrypted | text | PHI | |
passport_number_encrypted | text | PHI | |
ssn_tax_id_encrypted | text | PHI | |
pay_rate_amount_encrypted | text | PHI | |
dl_expiration | text | ||
passport_expiration | text | ||
emergency_contact_name | text | ||
emergency_contact_phone | text | ||
travels | boolean | ||
preferred_airport | text | ||
preferred_seat | text | ||
tsa_ktn | text | ||
loyalty_delta | text | ||
loyalty_united | text | ||
loyalty_american | text | ||
loyalty_southwest | text | ||
loyalty_jetblue | text | ||
pay_rate_type | text | ||
status | text | required | |
synced_at | timestamp with time zone | ||
created_at | timestamp without time zone | ||
updated_at | timestamp without time zone | ||
mobile_phone | text | ||
rac_reward | text | ||
hotel_reward | text | ||
atmos_al | text | ||
address_encrypted | text | PHI | |
cell_phone_encrypted | text | PHI | |
mobile_phone_encrypted | text | PHI | |
personal_email_encrypted | text | PHI | |
onboarding_completed_at | timestamp with time zone |
staff_benefits7 columns1 indexes0 FKs
Used by: Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations
| Column | Type | Null | Keys |
|---|---|---|---|
staff_id | integer | required | PK |
employment_type | text | required | |
min_days | integer | ||
flag_override | text | ||
notes | text | ||
updated_by | text | ||
updated_at | timestamp with time zone | required |
staff_invites9 columns5 indexes2 FKs
Used by: Van Management, Staff, Schedule, User Management, Accept invite
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
staff_id | integer | FK → staff | |
user_id | text | required | FK → dh_users |
token_hash | text | required | PHI |
expires_at | timestamp with time zone | required | |
used_at | timestamp with time zone | ||
revoked_at | timestamp with time zone | ||
created_by | text | ||
created_at | timestamp with time zone | required |
staff_performance_scores13 columns3 indexes0 FKs
Used by: Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
staff_id | integer | required | |
period | text | required | |
clinical | text | ||
production | text | ||
patient_flow | text | ||
teamwork | text | ||
reliability | text | ||
patient_experience | text | ||
score | integer | ||
notes | text | ||
scored_by | text | ||
scored_at | timestamp with time zone | required |
staff_time_off8 columns3 indexes2 FKs
Used by: Van Management, Schedule, Staff Requested Time Off, Staff Schedule, Request Time Off, My Account, Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
staff_id | integer | required | FK → staff |
start_date | text | required | |
end_date | text | required | |
reason | text | required | |
created_at | timestamp with time zone | ||
updated_at | timestamp with time zone | ||
request_id | bigint | FK → staff_time_off_requests |
staff_time_off_requests14 columns4 indexes1 FKs
Used by: Staff Requested Time Off, Staff Schedule, Request Time Off, My Account, Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations
| Column | Type | Null | Keys |
|---|---|---|---|
id | bigint | required | PK |
staff_id | integer | required | FK → staff |
requester_name | text | required | |
requester_email | text | required | |
requester_phone | text | ||
start_date | text | required | |
end_date | text | required | |
reason | text | ||
status | text | required | |
decided_by | text | ||
decided_at | timestamp with time zone | ||
decision_note | text | ||
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required |
sysco_interest_emails3 columns1 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts, popupsmiles.com, B2B site
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
created_on | text | required | |
email | text | required |
sysco_poll_responses6 columns2 indexes0 FKs
Used by: no menu page — used by popupsmiles.com, B2B site
| Column | Type | Null | Keys |
|---|---|---|---|
id | text | required | PK |
created_at | text | required | |
q1_last_visit | text | required | |
q2_barriers | text | required | |
q3_would_book | text | required | |
q4_wants | text | required |
time_off_approval_tokens8 columns3 indexes1 FKs
Used by: Staff Requested Time Off, Staff Schedule, Request Time Off, My Account, Dashboard, Monthly Schedule, Provider Schedule, Coverage Requests, Availability, All Providers, Recruitment Pipeline, Performance Scorecards, Payroll Verification, Reports & Analytics, Audit Trail, Offices & Locations
| Column | Type | Null | Keys |
|---|---|---|---|
id | bigint | required | PK |
request_id | bigint | required | FK → staff_time_off_requests |
approver_email | text | required | |
approver_name | text | ||
token_hash | text | required | PHI |
used_at | timestamp with time zone | ||
expires_at | timestamp with time zone | required | |
created_at | timestamp with time zone | required |
treatment_cache26 columns5 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
procedure_id | text | required | |
date_presented | text | required | |
patient_id | text | required | |
patient_name | text | required | |
provider | text | required | |
location_id | text | ||
location_name | text | ||
treatment_type | text | ||
ada_code | text | ||
diagnosed | numeric(14,2) | ||
accepted | numeric(14,2) | ||
started_yn | text | ||
collected | numeric(14,2) | ||
declined_yn | text | ||
reason_for_decline | text | ||
financing_option | text | ||
follow_up_status | text | ||
bill_to_insurance | text | ||
insurance_portion | numeric(14,2) | ||
patient_portion | numeric(14,2) | ||
write_off | numeric(14,2) | ||
status | text | ||
category | text | ||
synced_at | timestamp with time zone | ||
patient_name_encrypted | text | PHI |
treatment_follow_ups10 columns2 indexes2 FKs
Used by: Follow Up Report
| Column | Type | Null | Keys |
|---|---|---|---|
procedure_id | text | required | PK FK → dh_patient_procedures |
followup_24hr_on | date | ||
followup_24hr_outcome_encrypted | text | PHI | |
email_3day_on | date | ||
call_7day_outcome_encrypted | text | PHI | |
monthly_followup_outcome_encrypted | text | PHI | |
final_status | text | ||
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required | |
updated_by | text | FK → dh_users |
treatment_rows21 columns0 indexes0 FKsview
A view (saved query, no data of its own) over dh_claim_procedures, dh_patient_procedures. Used by: Treatment Tracking, Follow Up Report
| Column | Type | Null | Keys |
|---|---|---|---|
procedure_id | text | ||
date_presented | text | ||
patient_id | text | ||
provider_id | text | ||
location_id | text | ||
treatment_type | text | ||
ada_code | text | ||
category | text | ||
status | text | ||
diagnosed | numeric | ||
accepted | numeric | ||
started_yn | text | ||
declined_yn | text | ||
reason_for_decline | text | ||
follow_up_status | text | ||
financing_option | text | ||
bill_to_insurance | text | ||
insurance_portion | numeric | ||
patient_portion | numeric | ||
write_off | numeric | ||
collected | numeric |
unsent_claim_notes7 columns1 indexes0 FKs
Used by: Unsent Claims
| Column | Type | Null | Keys |
|---|---|---|---|
claim_id | text | required | PK |
biller_request | text | ||
office_response | text | ||
updated_by | text | ||
updated_at | timestamp with time zone | required | |
biller_request_encrypted | text | PHI | |
office_response_encrypted | text | PHI |
unsent_claim_report_sends8 columns3 indexes0 FKs
Used by: Unsent Claims
| Column | Type | Null | Keys |
|---|---|---|---|
id | bigint | required | PK |
office_name | text | required | |
sent_to | text | required | |
sent_by | text | ||
claim_count | integer | ||
total_amount | numeric(12,2) | ||
sent_at | timestamp with time zone | required | |
office_id | text |
van_drive_alerts9 columns2 indexes0 FKs
Used by: Dental Days
| Column | Type | Null | Keys |
|---|---|---|---|
id | bigint | required | PK |
van | text | required | |
from_calendar_id | text | required | |
from_date | text | required | |
to_calendar_id | text | required | |
to_date | text | required | |
drive_minutes | integer | required | |
drive_meters | integer | ||
alerted_at | timestamp with time zone | required |
van_driver_moves16 columns3 indexes0 FKs
Used by: Van Management
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
van | text | required | |
from_calendar_id | text | required | |
from_date | text | required | |
to_calendar_id | text | required | |
to_date | text | required | |
driver_staff_id | integer | ||
co_driver_staff_id | integer | ||
travel_method | text | ||
travel_details | text | ||
travel_cost | numeric(10,2) | ||
status | text | required | |
notes | text | ||
updated_by | text | ||
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required |
vans9 columns2 indexes0 FKs
Used by: Dental Days, Dental Days Calendar, Van Drive Time, Van Management, Equipment Repairs, Schedule
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
name | text | required | |
color | text | required | |
active | boolean | required | |
sort_order | integer | required | |
notes | text | ||
created_at | timestamp with time zone | required | |
updated_at | timestamp with time zone | required | |
home_address | text |
volunteer_registrations40 columns2 indexes0 FKs
Used by: Volunteers
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
event_key | text | required | |
first_name | text | required | |
last_name | text | required | |
email | text | required | |
phone | text | ||
role | text | required | |
availability | text | ||
license_type | text | ||
license_number | text | ||
license_state | text | ||
license_expiration | text | ||
notes | text | ||
nda_accepted | boolean | required | |
nda_version | text | ||
nda_accepted_at | timestamp with time zone | ||
release_accepted | boolean | required | |
release_version | text | ||
release_accepted_at | timestamp with time zone | ||
signature_name | text | ||
signature_image | text | ||
signed_ip | text | ||
signed_user_agent | text | ||
drivers_license_url | text | ||
pro_license_url | text | ||
status | text | required | |
created_at | timestamp with time zone | required | |
nda_document_id | text | ||
nda_sent_at | timestamp with time zone | ||
nda_signed_at | timestamp with time zone | ||
nda_declined_at | timestamp with time zone | ||
nda_pdf_url | text | ||
nda_bounced_at | timestamp with time zone | ||
nda_viewed_at | timestamp with time zone | ||
nda_status | text | ||
nda_events | jsonb | required | |
email_encrypted | text | PHI | |
phone_encrypted | text | PHI | |
license_number_encrypted | text | PHI | |
email_hash | text | PHI |
website_inquiries20 columns4 indexes0 FKs
Used by: Landing Page Leads, CallRail Leads, Referred By Patients, Referral Summary
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
company_name | text | required | |
email | text | required | |
phone | text | required | |
employees | text | ||
locations | text | ||
message | text | ||
source | text | required | |
klaviyo_synced | boolean | ||
created_at | timestamp with time zone | required | |
archived_at | timestamp with time zone | ||
archived_by | text | ||
lead_status | text | ||
lead_status_by | text | ||
lead_status_at | timestamp with time zone | ||
lead_notes | text | ||
lead_notes_by | text | ||
lead_notes_at | timestamp with time zone | ||
email_encrypted | text | PHI | |
phone_encrypted | text | PHI |
website_patient_requests31 columns3 indexes0 FKs
Used by: Landing Page Leads
| Column | Type | Null | Keys |
|---|---|---|---|
id | uuid | required | PK |
created_at | timestamp with time zone | required | |
source | text | required | |
form_type | text | ||
page_name | text | ||
page_choice | text | ||
preferred_office | text | ||
interest | text | ||
insurance_status | text | ||
consent | boolean | required | |
utm_source | text | ||
utm_medium | text | ||
utm_campaign | text | ||
utm_term | text | ||
utm_content | text | ||
gclid | text | ||
landing_page_url | text | ||
full_name_encrypted | text | PHI | |
phone_encrypted | text | PHI | |
email_encrypted | text | PHI | |
insurance_provider_encrypted | text | PHI | |
member_id_encrypted | text | PHI | |
email_status | text | ||
lead_status | text | ||
lead_status_by | text | ||
lead_status_at | timestamp with time zone | ||
lead_notes | text | ||
lead_notes_by | text | ||
lead_notes_at | timestamp with time zone | ||
archived_at | timestamp with time zone | ||
archived_by | text |
website_subscribers5 columns3 indexes0 FKs
Used by: no menu page — used by Pulse jobs / webhooks / scripts, popupsmiles.com, B2B site, marketing pages
| Column | Type | Null | Keys |
|---|---|---|---|
id | integer | required | PK |
email | text | required | |
source | text | required | |
klaviyo_synced | boolean | ||
created_at | timestamp with time zone | required |