householdInfo 
Logical Entity Name  householdInfo 
Default Table Name  householdInfo 
Physical Only  NO 
Do Not Generate  False 
Owner  dbo 
Definition 
 
Note 
 
PreSQL   
DDL Code  CREATE TABLE dbo.householdInfo(
     hhinforid             numeric(18, 0)     IDENTITY(1,1),
     socialgpid            nvarchar(9)        NULL,
     observeid             nvarchar(12)       NULL,
     round                 smallint           NULL,
     roof                  smallint           NULL,
     othdes_roof           nvarchar(50)       NULL,
     wall                  smallint           NULL,
     othdes_wall           nvarchar(50)       NULL,
     house_foundation      smallint           NULL,
     othdes_foundation     nvarchar(50)       NULL,
     house_area            float              NULL,
     gridelectricity       bit                CONSTRAINT [DF__household__gride__6FE99F9F] DEFAULT ((0)) NULL,
     othdes_water          nvarchar(50)       NULL,
     water                 smallint           NULL,
     othdes_toilet         nvarchar(50)       NULL,
     toilet                smallint           NULL,
     othdes_bathroom       nvarchar(50)       NULL,
     bathroom              smallint           NULL,
     radio_num             float              NULL,
     freezer_num           float              NULL,
     tv_num                float              NULL,
     video_num             float              NULL,
     cupboard_num          float              NULL,
     efan_num              float              NULL,
     sewmachine_num        float              NULL,
     phone_num             float              NULL,
     mobile_num            float              NULL,
     computer_num          float              NULL,
     bic_num               float              NULL,
     motorbike_num         float              NULL,
     car_num               float              NULL,
     motorboat_num         float              NULL,
     grinder_num           float              NULL,
     pump_num              float              NULL,
     gascooker_num         float              NULL,
     buffalo_num           float              NULL,
     pig_num               float              NULL,
     eco_outside_sup       bit                CONSTRAINT [DF__household__eco_o__70DDC3D8] DEFAULT ((0)) NULL,
     eco_outside_suptd     bit                CONSTRAINT [DF__household__eco_o__71D1E811] DEFAULT ((0)) NULL,
     eco_inside_sup        bit                CONSTRAINT [DF__household__eco_i__72C60C4A] DEFAULT ((0)) NULL,
     eco_inside_suptd      bit                CONSTRAINT [DF__household__eco_i__73BA3083] DEFAULT ((0)) NULL,
     responsorID           nvarchar(35)       NULL,
     entryDate             datetime           NULL,
     fieldWrkr             nvarchar(2)        NULL,
     dataClerk             nvarchar(2)        NULL,
     deDate                datetime           NULL,
     statusDat             nvarchar(1)        NULL,
     poorfamily            int                NULL,
     washingmachine        int                NULL,
     ricecooker            int                NULL,
     microwave             int                NULL,
     airconditioner        int                NULL,
     cabletv               int                NULL,
     adsl                  int                NULL,
     CONSTRAINT PK__househol__5CDD59C0DFE76D44 PRIMARY KEY CLUSTERED (hhinforid),
     CONSTRAINT Refsocialgroup35 FOREIGN KEY (socialgpid)
     REFERENCES dbo.socialgroup(socialgpid),
     CONSTRAINT Refobservation41 FOREIGN KEY (observeid)
     REFERENCES dbo.observation(observeid)
)

go
 
PostSQL   

householdInfo Columns 
ColumnName  Domain  Datatype  NULL  Definition 
hhinforid(PK)    numeric(18, 0)  NO 
 
socialgpid(FK)    nvarchar(9)  YES 
 
observeid(FK)    nvarchar(12)  YES 
 
round    smallint  YES 
 
roof    smallint  YES 
 
othdes_roof    nvarchar(50)  YES 
 
wall    smallint  YES 
 
othdes_wall    nvarchar(50)  YES 
 
house_foundation    smallint  YES 
 
othdes_foundation    nvarchar(50)  YES 
 
house_area    float  YES 
 
gridelectricity    bit  YES 
 
othdes_water    nvarchar(50)  YES 
 
water    smallint  YES 
 
othdes_toilet    nvarchar(50)  YES 
 
toilet    smallint  YES 
 
othdes_bathroom    nvarchar(50)  YES 
 
bathroom    smallint  YES 
 
radio_num    float  YES 
 
freezer_num    float  YES 
 
tv_num    float  YES 
 
video_num    float  YES 
 
cupboard_num    float  YES 
 
efan_num    float  YES 
 
sewmachine_num    float  YES 
 
phone_num    float  YES 
 
mobile_num    float  YES 
 
computer_num    float  YES 
 
bic_num    float  YES 
 
motorbike_num    float  YES 
 
car_num    float  YES 
 
motorboat_num    float  YES 
 
grinder_num    float  YES 
 
pump_num    float  YES 
 
gascooker_num    float  YES 
 
buffalo_num    float  YES 
 
pig_num    float  YES 
 
eco_outside_sup    bit  YES 
 
eco_outside_suptd    bit  YES 
 
eco_inside_sup    bit  YES 
 
eco_inside_suptd    bit  YES 
 
responsorID    nvarchar(35)  YES 
 
entryDate    datetime  YES 
 
fieldWrkr    nvarchar(2)  YES 
 
dataClerk    nvarchar(2)  YES 
 
deDate    datetime  YES 
 
statusDat    nvarchar(1)  YES 
 
poorfamily    int  YES 
 
washingmachine    int  YES 
 
ricecooker    int  YES 
 
microwave    int  YES 
 
airconditioner    int  YES 
 
cabletv    int  YES 
 
adsl    int  YES 
 

householdInfo Primary and Unique Keys 
Key Name  Key Type  Keys 
PK__househol__5CDD59C0DFE76D44  PrimaryKey  hhinforid 

householdInfo Foreign Keys 
Parent Relationships: 
Table Name  Type  Cardinality  Constraint Name  VerbPhrase  InversePhrase  Foreign Keys  Is Supertype  Not For Replication 
socialgroup  Non-Identifying  Zero or One to Zero or More        socialgpid  NO  NO 
observation  Non-Identifying  Zero or One to Zero or More        observeid  NO  NO 
Child Relationships: 
Table Name  Type  Cardinality  Constraint Name  VerbPhrase  InversePhrase  Foreign Keys  Is Subtype  Not For Replication 

householdInfo Check Constraints 
Check Constraint Name  CheckConstraint 

householdInfo Storage 
STORAGE OPTION  STORAGE VALUE 
Filegroup  PRIMARY 
Text Image File Group   

householdInfo Growth Metrics 
TABLE METRIC  TABLE METRIC VALUE 
Current Row Count 
Growth  Static 
Growth Type  N/A 
Growth Period  N/A 
Maximum Rows 

householdInfo Object Permissions 

User/Role Name  Grantee Type  Permission Type  Action Type  Is Action Extended  Is System 
householdInfo Security Types 
Name  Current Value 

householdInfo Bound Attachments 
Name  Current Value 

householdInfo Where Used - Model Usage 
Mapped Object  Is User Defined?  Denormalization Mappings  Description  Bound Attachments 
Logical
dbo.householdInfo 
NO       
Physical (Microsoft SQL Server)
dbo.householdInfo 
NO       

householdInfo Where Used - Submodel Usage 
Model  Submodel Usage 
Logical  Main Model 
Logical  Household Info 
Physical (Microsoft SQL Server)  Main Model 

householdInfo Data Movement Rules 
Name  Type  Rule Text/Value