USE [Clinica]
GO
/****** Object:  Table [Clinica].[EstadoCita]    Script Date: 18-08-2025 21:38:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Clinica].[EstadoCita](
	[IdEstadoCita] [int] IDENTITY(1,1) NOT NULL,
	[IdTipoEstadoCita] [int] NOT NULL,
	[FechaHora] [datetime] NULL,
	[IdUsuario] [int] NOT NULL,
PRIMARY KEY CLUSTERED 
(
	[IdEstadoCita] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [Clinica].[EstadoCita]  WITH CHECK ADD FOREIGN KEY([IdTipoEstadoCita])
REFERENCES [Clinica].[TipoEstadoCita] ([IdTipoEstadoCita])
GO
ALTER TABLE [Clinica].[EstadoCita]  WITH CHECK ADD FOREIGN KEY([IdUsuario])
REFERENCES [Core].[Usuario] ([IdUsuario])
GO
