The kotlin compiler fails to compile when I extend the Item() class

This is how my Data class looks like

I tried to ignore the fields, but it didn't work
Groupie items are not serializable and cannot be saved to a database. You should instead create a data class that only holds your data and save that to a db. Groupie items have references to objects that cannot be saved in a db.
Don't extend Item() with your DB schema classes.
They are two separate things.
Closing as @digitalbuddha and @Zhuinden gave clear answers
Most helpful comment
Don't extend
Item()with your DB schema classes.They are two separate things.