USE [Clinica]
GO
/****** Object:  Table [Core].[Empresa]    Script Date: 18-08-2025 21:38:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Core].[Empresa](
	[IdEmpresa] [int] NOT NULL,
	[Descripcion] [varchar](256) NOT NULL,
	[IdCliente] [int] NOT NULL,
	[Logo] [varchar](256) NULL,
	[Alias] [varchar](256) NOT NULL,
 CONSTRAINT [PK_Empresa] PRIMARY KEY CLUSTERED 
(
	[IdEmpresa] 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].[Empresa]  WITH CHECK ADD  CONSTRAINT [FK_Empresa_Cliente] FOREIGN KEY([IdCliente])
REFERENCES [Core].[Cliente] ([IdCliente])
GO
ALTER TABLE [Core].[Empresa] CHECK CONSTRAINT [FK_Empresa_Cliente]
GO
