I've facing a trouble, and i need your help please:
If we assume is that there is a table called page has and id, name, and creation_date.
Also if there's another table called user has and id, name, birthdate.
Also if there's another table called admin has and id, name, is_super_admin
The last table is post has writer and content.
The problem is that: the post write can be an page or an user or an admin. So how can i set the post.writer column as foreign key from all of (page.id, user.id and admin.id). How can the database define is that for example [writer = "1"] refers for a an page, admin or an user?