householdin 
Logical Entity Name  householdin 
Default Table Name  householdin 
Physical Only  NO 
Do Not Generate  False 
Owner  dbo 
Definition 
 
Note 
 
PreSQL   
DDL Code  CREATE TABLE dbo.householdin(
     eventid            int                IDENTITY(1,1),
     observeid          nvarchar(12)       NULL,
     img_date           datetime           NULL,
     img_type           int                NULL,
     socialgpid         nvarchar(9)        NULL,
     locationid         nvarchar(7)        NOT NULL,
     sr_locationid      nvarchar(7)        NULL,
     sr_clusterdes      nvarchar(50)       NULL,
     sr_communedes      nvarchar(50)       NULL,
     sr_districtdes     nvarchar(50)       NULL,
     sr_provincedes     nvarchar(50)       NULL,
     sr_countrydes      nvarchar(50)       NULL,
     famReason          bit                NULL,
     ecoReason          bit                NULL,
     eduReason          bit                NULL,
     warReason          bit                NULL,
     othReason          bit                NULL,
     oth_reasondes      ntext              NULL,
     provincode         numeric(18, 0)     NULL,
     CONSTRAINT PK__househol__2DC8B111D37B3D0B PRIMARY KEY CLUSTERED (eventid),
     CONSTRAINT Reflocation29 FOREIGN KEY (locationid)
     REFERENCES dbo.location(locationid),
     CONSTRAINT Refsocialgroup34 FOREIGN KEY (socialgpid)
     REFERENCES dbo.socialgroup(socialgpid),
     CONSTRAINT Refobservation40 FOREIGN KEY (observeid)
     REFERENCES dbo.observation(observeid)
)
TEXTIMAGE_ON PRIMARY

go
 
PostSQL   

householdin Columns 
ColumnName  Domain  Datatype  NULL  Definition 
eventid(PK)    int  NO 
 
observeid(FK)    nvarchar(12)  YES 
 
img_date    datetime  YES 
 
img_type    int  YES 
 
socialgpid(FK)    nvarchar(9)  YES 
 
locationid(FK)    nvarchar(7)  NO 
 
sr_locationid    nvarchar(7)  YES 
 
sr_clusterdes    nvarchar(50)  YES 
 
sr_communedes    nvarchar(50)  YES 
 
sr_districtdes    nvarchar(50)  YES 
 
sr_provincedes    nvarchar(50)  YES 
 
sr_countrydes    nvarchar(50)  YES 
 
famReason    bit  YES 
 
ecoReason    bit  YES 
 
eduReason    bit  YES 
 
warReason    bit  YES 
 
othReason    bit  YES 
 
oth_reasondes    ntext  YES 
 
provincode    numeric(18, 0)  YES 
 

householdin Primary and Unique Keys 
Key Name  Key Type  Keys 
PK__househol__2DC8B111D37B3D0B  PrimaryKey  eventid 

householdin Foreign Keys 
Parent Relationships: 
Table Name  Type  Cardinality  Constraint Name  VerbPhrase  InversePhrase  Foreign Keys  Is Supertype  Not For Replication 
location  Non-Identifying  One To Zero or More        locationid  NO  NO 
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 

householdin Check Constraints 
Check Constraint Name  CheckConstraint 

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

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

householdin Object Permissions 

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

householdin Bound Attachments 
Name  Current Value 

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

householdin Where Used - Submodel Usage 
Model  Submodel Usage 
Logical  Main Model 
Physical (Microsoft SQL Server)  Main Model 

householdin Data Movement Rules 
Name  Type  Rule Text/Value