USE [Clinica]
GO

/****** Object:  Table [Clinica].[TipoExamen]    Script Date: 19-12-2024 15:05:06 ******/
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,
 CONSTRAINT [PK__TipoExam__FF2B2118F64EB008] 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  CONSTRAINT [DF__TipoExame__Descr__1E8F7FEF]  DEFAULT ('') FOR [Descripcion]
GO

ALTER TABLE [Clinica].[TipoExamen] ADD  CONSTRAINT [DF__TipoExame__IndMo__3FF073BA]  DEFAULT ((1)) FOR [IndMostrarTitulo]
GO

ALTER TABLE [Clinica].[TipoExamen] ADD  CONSTRAINT [DF__TipoExame__IndMo__3C1FE2D6]  DEFAULT ((1)) FOR [IndMostrarCodigo]
GO

ALTER TABLE [Clinica].[TipoExamen] ADD  CONSTRAINT [DF__TipoExame__IndMo__3D14070F]  DEFAULT ((1)) FOR [IndMostrarCodigoFonasa]
GO

ALTER TABLE [Clinica].[TipoExamen] ADD  CONSTRAINT [DF__TipoExame__IndCo__3E082B48]  DEFAULT ((0)) FOR [IndCodigoIzquierda]
GO

ALTER TABLE [Clinica].[TipoExamen] ADD  CONSTRAINT [DF__TipoExame__IndCo__3EFC4F81]  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


