Do I need a foreign key?

I read that the foreign key is needed at the database level, and the relations at the application level. That's the question. When designing, is it necessary to write a foreign key, or is it enough that at the application level?
Was this page helpful?