USE [Clinica]
GO
/****** Object:  Table [Core].[Contacto]    Script Date: 18-08-2025 21:40:49 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Core].[Contacto](
	[IdContacto] [int] IDENTITY(1,1) NOT NULL,
	[IdCliente] [int] NOT NULL,
	[Nombre] [varchar](512) NULL,
	[Email] [varchar](45) NULL,
	[Cargo] [varchar](512) NULL,
	[Avatar] [varchar](256) NULL,
 CONSTRAINT [PK_Contacto] PRIMARY KEY CLUSTERED 
(
	[IdContacto] 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].[Contacto]  WITH CHECK ADD  CONSTRAINT [FK_Contacto_Cliente] FOREIGN KEY([IdCliente])
REFERENCES [Core].[Cliente] ([IdCliente])
GO
ALTER TABLE [Core].[Contacto] CHECK CONSTRAINT [FK_Contacto_Cliente]
GO
