Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/10/2010, 10:18
chsc
 
Fecha de Ingreso: febrero-2010
Mensajes: 132
Antigüedad: 14 años, 2 meses
Puntos: 0
Exclamación Duda con relaciones 1 a 1

Yo quiero relacionar huespedes con habitaciones.
Se me ocurre modelar las tablas de 2 formas.

HUESPEDES
id_huesped
nombre
habitacion (FK)

HABITACIONES
id_habitacion (PK)
precio
tamaño

O sino también se me ocurrió:

CLIENTES
id_huesped (PK)
nombre

HABITACIONES
id_habitacion
precio
tamaño
huesped (FK)

Son perfectamente equivalentes estas formas de modelar ?
Alguna diferencia ??

gracias...