foreignKey method

String foreignKey()

Converts this string to a foreign key name.

Implementation

String foreignKey() =>
    '${uncapitalize().replaceAll(RegExp(r'[^a-zA-Z0-9]'), '')}_id';