Admin Plugin Docs Question

Hi! I'm making an app right now and came across this in the docs. Shouldn't the impersonatedBy property have that little Foreign Key tag? The property references an ID from the users table after all, doesn't it? Is it a compatibility issue for some databases or adapters - do some not have the option for optional foreign keys?
No description
4 Replies
Ping
Ping2mo ago
In the code it's not a foreign key either Not sure why though
Kapios
KapiosOP2mo ago
I see I know I'm replying a bit late but can I make it an FK in my schema or will that introduce issues for the library?
Ping
Ping2mo ago
I think that should be fine, just make sure it's nullable and I think nothing will break, but not 100%
Kapios
KapiosOP2mo ago
okay, thanks!

Did you find this page helpful?