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