I've read several posts on SO about creating one-to-one relationship:
how do i create a real one-to-one relationship in sql server
is there ever a time where using a database 11 relationship makes sense?
Database design 1 to 1 relationship
but I would be pleased to have your advice on this basic case: I have a USER and a COMPANY tables. Each USER can have 0 or 1 COMPANY.
Is it better to use two tables with the following relationship:
or did I have just to use only one table with all fields needed:
Thanks for your explanation.
Note: I'm using SQL Server (with Manager Studio to set it up) and plan to use EF.
Update: In order to be more explicit, what I'm trying to achieve is the following: A user can own or doesn't own a company. If he owns a company he is the sole person working for it.
Thanks