location 
Logical Entity Name  location 
Default Table Name  location 
Physical Only  NO 
Do Not Generate  False 
Owner  dbo 
Definition 
 
Note 
 
PreSQL   
DDL Code  CREATE TABLE dbo.location(
     locationid      nvarchar(7)       NOT NULL,
     communeid       char(2)           NULL,
     clusterid       nvarchar(4)       NULL,
     house_num       decimal(4, 0)     NULL,
     longitude       int               CONSTRAINT [DF__location__longit__56E8E7AB] DEFAULT (0) NULL,
     latitude        int               CONSTRAINT [DF__location__latitu__57DD0BE4] DEFAULT (0) NULL,
     entryDate       datetime          NULL,
     fieldWrkr       nvarchar(2)       NULL,
     responsorid     nvarchar(35)      NULL,
     dataClerk       nvarchar(2)       NULL,
     round           smallint          CONSTRAINT [DF__location__round__58D1301D] DEFAULT (0) NULL,
     deDate          datetime          NULL,
     statusDat       nvarchar(1)       NULL,
     address         nvarchar(100)     NULL,
     CONSTRAINT PK__location__306F78A607FA550A PRIMARY KEY CLUSTERED (locationid),
     CONSTRAINT FK_location_CommuneList FOREIGN KEY (communeid)
     REFERENCES dbo.CommuneList(communeid)
)

go
 
PostSQL   

location Columns 
ColumnName  Domain  Datatype  NULL  Definition 
locationid(PK)    nvarchar(7)  NO 
 
communeid(FK)    char(2)  YES 
 
clusterid    nvarchar(4)  YES 
 
house_num    decimal(4, 0)  YES 
 
longitude    int  YES 
 
latitude    int  YES 
 
entryDate    datetime  YES 
 
fieldWrkr    nvarchar(2)  YES 
 
responsorid    nvarchar(35)  YES 
 
dataClerk    nvarchar(2)  YES 
 
round    smallint  YES 
 
deDate    datetime  YES 
 
statusDat    nvarchar(1)  YES 
 
address    nvarchar(100)  YES 
 

location Primary and Unique Keys 
Key Name  Key Type  Keys 
PK__location__306F78A607FA550A  PrimaryKey  locationid 

location Foreign Keys 
Parent Relationships: 
Table Name  Type  Cardinality  Constraint Name  VerbPhrase  InversePhrase  Foreign Keys  Is Supertype  Not For Replication 
CommuneList  Non-Identifying  Zero or One to Zero or More  FK_location_CommuneList      communeid  NO  NO 
Child Relationships: 
Table Name  Type  Cardinality  Constraint Name  VerbPhrase  InversePhrase  Foreign Keys  Is Subtype  Not For Replication 
householdin  Non-Identifying  One To Zero or More          NO  NO 
householdout  Non-Identifying  One To Zero or More          NO  NO 
locationinfo  Non-Identifying  One To Zero or More          NO  NO 
observation  Non-Identifying  One To Zero or More          NO  NO 
outmigration  Non-Identifying  One To Zero or More          NO  NO 
individres  Non-Identifying  One To Zero or More  FK_individres_location        NO  NO 

location Check Constraints 
Check Constraint Name  CheckConstraint 

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

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

location Object Permissions 

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

location Bound Attachments 
Name  Current Value 

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

location Where Used - Submodel Usage 
Model  Submodel Usage 
Logical  Main Model 
Logical  Outmigration 
Logical  residence 
Physical (Microsoft SQL Server)  Main Model 

location Data Movement Rules 
Name  Type  Rule Text/Value