Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

CREATE TABLE [dbo].

[tipos_Habitacion](
[Id_tipo_habitacion] [int] NOT NULL,
[Tipo_Habitacion] [char](35) NULL
CONSTRAINT PK_tipos_Habitacion PRIMARY KEY (Id_tipo_habitacion);
);

CREATE TABLE [dbo].[PlantelE](


[Id_Plantele] [int] NOT NULL,
[Nombre_Plantel] [char](40) NULL
) ;

CREATE TABLE [dbo].[Plantel_Educativo_Persona](


[Id_PlantelEP] [int] NOT NULL,
[Id_Plantele] [int] NULL,
[Id_IdentificacionP] [int] NULL,
[Jornada] [char](50) NULL,
[Modalidad] [char](50) NULL,
[Fecha] [date] NULL
) ;

CREATE TABLE [dbo].[Persona_enfermedad](


[id_persona_enfermedad] [int] NOT NULL,
[id_enfermedad] [int] NULL,
[Id_IdentificacionP] [int] NULL,
[fecha] [date] NULL,
[descripcion] [varchar](100) NULL
);

CREATE TABLE [dbo].[Persona](


[Id_IdentificacionP] [int] NOT NULL,
[Tipo_Identificacion] [varchar](45) NULL,
[Nombres] [char](50) NULL,
[Apellidos] [char](100) NULL,
[Fecha_Nacimiento] [date] NULL,
[id_municipio_nacimiento] [int] NULL
) ;

CREATE TABLE [dbo].[niveles_socioeconomicos](


[Id_socio_economico] [int] NOT NULL,
[NombreNivel] [varchar](255) NULL
) ;

CREATE TABLE [dbo].[municipios](


[Id_municipio] [int] NOT NULL,
[Id_departamento] [int] NULL,
[nombre_municipio] [char](50) NULL
) ;

CREATE TABLE [dbo].[Localidades](


[Id_Localidad] [int] NOT NULL,
[NombreLocalidad] [varchar](255) NULL
) ;

CREATE TABLE [dbo].[Guarderia_Persona](


[Id_guarderia_p] [int] NOT NULL,
[Id_guarderia] [int] NULL,
[Id_IdentificacionP] [int] NULL,
[Fecha] [date] NULL
) ;
CREATE TABLE [dbo].[Guarderia](
[Id_guarderia] [int] NOT NULL,
[Nombre_Guarderia] [char](30) NULL
) ;

CREATE TABLE [dbo].[Familias](


[id_familia] [int] NOT NULL,
[Id_IdentificacionP] [int] NULL,
[id_barrio] [int] NULL,
[id_tipo_habitacion] [int] NULL,
[Direccion] [char](100) NULL,
[Telefono] [char](100) NULL
) ;

CREATE TABLE [dbo].[Enfermeddades](


[Id_enfermedad] [int] NOT NULL,
[Nombre_enfermedad] [char](30) NULL
) ;

CREATE TABLE [dbo].[Empresa_Persona](


[Id_empresa] [int] NOT NULL,
[Id_IdentificacionP] [int] NULL,
[Cargo] [varchar](255) NULL,
[Fecha] [date] NULL
) ;

CREATE TABLE [dbo].[Empresa](


[Id_empresa] [int] NOT NULL,
[Nombre_Empresa] [varchar](255) NULL
) ;

CREATE TABLE [dbo].[Departamentos](


[Id_departamento] [int] NOT NULL,
[nombre_departamento] [char](50) NULL
) ;

CREATE TABLE [dbo].[Barrio](


[Id_Barrio] [int] NOT NULL,
[Id_Localidad] [int] NULL,
[Id_socio_economico] [int] NULL,
[NombreBarrio] [char](50) NULL
);

You might also like