Migration function type
typedef MigrationFunction<T> = T Function(Map<String, dynamic> oldData, int fromVersion, int toVersion);