Modificação de classe de dados genérica e possível migração de banco de dados

Adicione um campo a uma classe de dados.


This Kotlin file below defines a data class. I need to add a new field.

Please prompt me for the name of the new field.

Then with that information, update the data class, its constructor, and any
functions in this file that use it to handle the new field, including proper
null checks if applicable.  If database access is present, generate a migration
function within this file to add the field to the corresponding table.

$CURRENT_FILE