When casting to the database

hello team am having issues when casting to the database but have done the associations already
value "1" for Otc.Accounts.User.role_id in insert does not match type :id

Can you please give some more context? Would be good to see the schema, the migration and the changeset function.

alright i can share with you here