Foreign key labels
When you have a foreign key in your table, Flashboard will automatically select a human-readable label to display instead of a raw ID. This makes your data easier to understand and work with.
There is a set of rules to infer the best label from the related table.
Label selection
Flashboard looks for a column in the related table that can serve as a good label. It prioritizes columns in the following order:
-
Title or name: It first looks for columns named
name,title, orfull_namethat are not nullable (i.e., must have a value). -
Email: If no title or name is found, it searches for an
email,email_address,e_mail, ore_mail_addresscolumn that is not nullable. -
Identifiers: If neither of the above is available, it looks for these common identifier columns:
sku,product_sku,model_number,code,identifier,catalog_number,barcode,bar_code, orisbnthat are not nullable.
If a column matching one of these criteria is found, Flashboard will use it as the label.
Fallback labels
If no single, non-nullable column can be identified using the rules above, Flashboard will create a fallback label. It takes the first available value from the following columns, in order of priority:
-
A title or name column.
-
An email column.
-
An identifier column.
-
The table's primary key.
-
The first column that is non-nullable.
-
The first column in the table.
