USE [Clinica]
GO
/****** Object:  Table [Laboratorio].[OrdenDetalle]    Script Date: 18-08-2025 21:38:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Laboratorio].[OrdenDetalle](
	[IdOrdenDetalle] [int] IDENTITY(1,1) NOT NULL,
	[IdOrden] [int] NOT NULL,
	[Titulo] [varchar](512) NOT NULL,
	[Metodo] [varchar](512) NOT NULL,
	[Html] [text] NOT NULL,
PRIMARY KEY CLUSTERED 
(
	[IdOrdenDetalle] 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] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [Laboratorio].[OrdenDetalle] ADD  DEFAULT ('') FOR [Titulo]
GO
ALTER TABLE [Laboratorio].[OrdenDetalle] ADD  DEFAULT ('') FOR [Metodo]
GO
ALTER TABLE [Laboratorio].[OrdenDetalle] ADD  DEFAULT ('') FOR [Html]
GO
ALTER TABLE [Laboratorio].[OrdenDetalle]  WITH CHECK ADD FOREIGN KEY([IdOrden])
REFERENCES [Laboratorio].[Orden] ([IdOrden])
GO
