Table: dbo.Staff_Default_Report_Option
Columns
NameTypeConstraintsDescription
staff_default_report_option_KEYint (4)NOT NULLPrimary key
staff_KEYint (4)NOT NULLForeign key to the staff member who owns these default report options.
client_KEYint (4)Foreign key to a client. This allows a staff member to save a seperate set of options for the report for each client. If null, options apply only to the report and user
report_definition_KEYint (4)NOT NULLForeign key to the report definition of the report that these default report options apply to.
report_option_xmlnvarchar (-1)NOT NULLThe default sort and filter options set up by the staff member to be used whenever the report is printed for the given client.
Primary key
NameColumnsDescription
PK_Staff_Default_Report_Optionstaff_default_report_option_KEY
Unique constraints
NameColumnsDescription
UK_Staff_Default_Report_Option$staff_KEY$client_KEY$report_definition_KEYstaff_KEY, client_KEY, report_definition_KEY
Foreign keys
NameColumnsReferenced tableDescription
FK_Staff_Default_Report_Option__Client__client_KEYclient_KEYClient (client_KEY)
FK_Staff_Default_Report_Option__Report_Definition__report_definition_KEYreport_definition_KEYReport_Definition (report_definition_KEY)
FK_Staff_Default_Report_Option__Staff__staff_KEYstaff_KEYStaff (staff_KEY)

Schema diagram