USE [Clinica]
GO
/****** Object:  Table [Clinica].[PrestacionGrupo]    Script Date: 18-08-2025 21:38:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Clinica].[PrestacionGrupo](
	[PrestacionGrupo] [int] IDENTITY(1,1) NOT NULL,
	[IdGrupo] [int] NOT NULL,
	[IdPrestacion] [int] NOT NULL,
	[IndActivo] [tinyint] NOT NULL,
PRIMARY KEY CLUSTERED 
(
	[PrestacionGrupo] 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].[PrestacionGrupo] ADD  DEFAULT ((1)) FOR [IndActivo]
GO
ALTER TABLE [Clinica].[PrestacionGrupo]  WITH CHECK ADD FOREIGN KEY([IdGrupo])
REFERENCES [Clinica].[Grupo] ([IdGrupo])
GO
ALTER TABLE [Clinica].[PrestacionGrupo]  WITH CHECK ADD FOREIGN KEY([IdPrestacion])
REFERENCES [Clinica].[Prestacion] ([IdPrestacion])
GO
