USE [Clinica]
GO
/****** Object:  Table [Caja].[Caja]    Script Date: 18-08-2025 21:40:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Caja].[Caja](
	[IdCaja] [int] IDENTITY(1,1) NOT NULL,
	[Descripcion] [varchar](256) NOT NULL,
	[IdCentroMedico] [int] NOT NULL,
	[IdTipoEstadoCaja] [int] NOT NULL,
PRIMARY KEY CLUSTERED 
(
	[IdCaja] 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 [Caja].[Caja] ADD  DEFAULT ('') FOR [Descripcion]
GO
ALTER TABLE [Caja].[Caja]  WITH CHECK ADD FOREIGN KEY([IdCentroMedico])
REFERENCES [Clinica].[CentroMedico] ([IdCentroMedico])
GO
ALTER TABLE [Caja].[Caja]  WITH CHECK ADD FOREIGN KEY([IdTipoEstadoCaja])
REFERENCES [Caja].[TipoEstadoCaja] ([IdTipoEstadoCaja])
GO
