DefaultUserModifyCrudRepository gets CurrentUser.id and pass it to entity.createdBy.
I've migrated the project to use uuid isntead of id and noticed that currentUser.id returns the user id but not the user_tenant id.
And when creating the tables in the migrations we have relation between created_by and user_tenants id, then I'm having constraint fail.
I've added userTenantId in the AuthUser model but I'm not sure if I'm wrong or there is really a bug?
Any help is appreciated, thanks!
DefaultUserModifyCrudRepository gets CurrentUser.id and pass it to entity.createdBy.
I've migrated the project to use uuid isntead of id and noticed that currentUser.id returns the user id but not the user_tenant id.
And when creating the tables in the migrations we have relation between created_by and user_tenants id, then I'm having constraint fail.
I've added userTenantId in the AuthUser model but I'm not sure if I'm wrong or there is really a bug?
Any help is appreciated, thanks!