USE [Clinica]
GO
/****** Object:  Table [Clinica].[TipoExamen]    Script Date: 18-08-2025 21:38:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [Clinica].[TipoExamen](
	[IdTipoExamen] [int] NOT NULL,
	[Descripcion] [varchar](128) NOT NULL,
	[IndMostrarTitulo] [tinyint] NOT NULL,
	[IndMostrarCodigo] [tinyint] NOT NULL,
	[IndMostrarCodigoFonasa] [tinyint] NOT NULL,
	[IndCodigoIzquierda] [tinyint] NOT NULL,
	[IndCodigoFonasaIzquierda] [tinyint] NOT NULL,
	[Orden] [int] NOT NULL,
	[IndListaIzquierda] [tinyint] NOT NULL,
PRIMARY KEY CLUSTERED 
(
	[IdTipoExamen] 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 [Clinica].[TipoExamen] ADD  DEFAULT ('') FOR [Descripcion]
GO
ALTER TABLE [Clinica].[TipoExamen] ADD  DEFAULT ((1)) FOR [IndMostrarTitulo]
GO
ALTER TABLE [Clinica].[TipoExamen] ADD  DEFAULT ((1)) FOR [IndMostrarCodigo]
GO
ALTER TABLE [Clinica].[TipoExamen] ADD  DEFAULT ((1)) FOR [IndMostrarCodigoFonasa]
GO
ALTER TABLE [Clinica].[TipoExamen] ADD  DEFAULT ((0)) FOR [IndCodigoIzquierda]
GO
ALTER TABLE [Clinica].[TipoExamen] ADD  DEFAULT ((0)) FOR [IndCodigoFonasaIzquierda]
GO
ALTER TABLE [Clinica].[TipoExamen] ADD  DEFAULT ((0)) FOR [Orden]
GO
ALTER TABLE [Clinica].[TipoExamen] ADD  DEFAULT ((0)) FOR [IndListaIzquierda]
GO
