foreignKeyTypeToSQLType method
String?
foreignKeyTypeToSQLType(
- TypeInfo idType,
- String idName, {
- List<
EntityField> ? entityFieldAnnotations,
Implementation
String? foreignKeyTypeToSQLType(TypeInfo idType, String idName,
{List<EntityField>? entityFieldAnnotations}) {
if (idType.isInt) {
idType = TypeInfo.tBigInt;
}
var sqlType = typeToSQLType(idType, idName,
entityFieldAnnotations: entityFieldAnnotations);
return sqlType;
}