USE [Clinica]
GO
/****** Object:  Table [Core].[ConfiguracionCliente]    Script Date: 18-08-2025 21:40:49 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Core].[ConfiguracionCliente](
	[IdConfiguracionCliente] [int] NOT NULL,
	[IdCliente] [int] NOT NULL,
	[IdConfiguracion] [int] NOT NULL,
	[Valor] [varchar](512) NOT NULL,
 CONSTRAINT [PK_ConfiguracionCliente] PRIMARY KEY CLUSTERED 
(
	[IdConfiguracionCliente] 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 [Core].[ConfiguracionCliente]  WITH CHECK ADD  CONSTRAINT [FK_ConfiguracionCliente_Cliente] FOREIGN KEY([IdCliente])
REFERENCES [Core].[Cliente] ([IdCliente])
GO
ALTER TABLE [Core].[ConfiguracionCliente] CHECK CONSTRAINT [FK_ConfiguracionCliente_Cliente]
GO
ALTER TABLE [Core].[ConfiguracionCliente]  WITH CHECK ADD  CONSTRAINT [FK_ConfiguracionCliente_Configuracion] FOREIGN KEY([IdConfiguracion])
REFERENCES [Core].[Configuracion] ([IdConfiguracion])
GO
ALTER TABLE [Core].[ConfiguracionCliente] CHECK CONSTRAINT [FK_ConfiguracionCliente_Configuracion]
GO
