USE [Clinica]
GO
/****** Object:  Table [Clinica].[EspecialidadProfesional]    Script Date: 18-08-2025 21:40:49 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Clinica].[EspecialidadProfesional](
	[IdEspecialidadProfesional] [int] IDENTITY(1,1) NOT NULL,
	[IdEspecialidad] [int] NOT NULL,
	[IdProfesional] [int] NOT NULL,
PRIMARY KEY CLUSTERED 
(
	[IdEspecialidadProfesional] 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].[EspecialidadProfesional]  WITH CHECK ADD FOREIGN KEY([IdEspecialidad])
REFERENCES [Clinica].[Especialidad] ([IdEspecialidad])
GO
ALTER TABLE [Clinica].[EspecialidadProfesional]  WITH CHECK ADD  CONSTRAINT [FK__Especiali__IdPro__5224328E] FOREIGN KEY([IdProfesional])
REFERENCES [Clinica].[Profesional] ([IdProfesional])
GO
ALTER TABLE [Clinica].[EspecialidadProfesional] CHECK CONSTRAINT [FK__Especiali__IdPro__5224328E]
GO
