joinsTableForeignColumnName static method

String joinsTableForeignColumnName(
  1. String foreignTableName
)

In the rare case of a many-to-many association of the same model, the columns must be prefixed. For example, final List<Friend> friends on class Friend.

This and joinsTableLocalColumnName are created for the legibility and constraint of a single, universal method across packages. The prefix of l should not be changed without an available migration path.

Implementation

static String joinsTableForeignColumnName(String foreignTableName) =>
    foreignKeyColumnName(foreignTableName, 'f');