edge_schedule_rules


Columns

Column Type Children Parents Comments
id int4
member_id int4
helper_id int4
start_time text
end_time text
recurrence_type text
recurrence_attributes json
created_at timestamp
updated_at timestamp
product_id int4
client_transport_rate_id int8
provider_travel_projected_time interval
provider_travel_projected_distance int4
provider_travel_distance_rate_id int8
provider_travel_time_rate_id int8
provider_travel_time_rate_matches_time_rate bool
provider_travel_rostered_time interval
visit_generation_errors varchar
company_id int8

The owning tenant’s ID. @example 1.

previous_hcp_product_id int8

A reference to the HCP visit rate prior to the migration to new Support at Home rate @example 1

product_locked bool

If true prevents the schedule_rule product from being recalculated. @example: true

product_locked_reason text

Reason given for locking product. @example: Discount override

created_at_in_company_tz timestamp
updated_at_in_company_tz timestamp
company_timezone varchar

The company timezone. E.g. Australia/Brisbane.

Indexes

Constraint Name Type Sort Column(s)
edge_schedule_rules_pkey Primary key Asc id
idx_edge_schedule_rules_client_transport_rate_id Performance Asc client_transport_rate_id
idx_edge_schedule_rules_company_id Performance Asc company_id
idx_edge_schedule_rules_helper_id Performance Asc helper_id
idx_edge_schedule_rules_member_id Performance Asc member_id
idx_edge_schedule_rules_previous_hcp_product_id Performance Asc previous_hcp_product_id
idx_edge_schedule_rules_product_id Performance Asc product_id
idx_edge_schedule_rules_provider_travel_distance_rate_id Performance Asc provider_travel_distance_rate_id
idx_edge_schedule_rules_provider_travel_time_rate_id Performance Asc provider_travel_time_rate_id

Relationships