# '#' is a comment line marker

#
#       TNT Process host settings file (TNTHOST.INI)
#

[MAIN]
Name=MUIR
Desc=Map Unit Interpretation Record Database
Sep=|
ext=
FieldNamesInFirstRow=Y
DomIDLinkTable=elements
SelectDirectory=Y

#
# This table is special.  The primary key is a multi field key, but
# the foreign keys that point to it are a single field and a "domid"
# which is assigned by looking up the table/field in the "elements"
# table.
#
[sdbcodes]
Name=SDBCODES
Desc=Database codes
code=PK,next=domid
domid=SK

[comp]
Name=COMP
Desc=Map Unit Component
musym=PK,next=ssaid
ssaid=SK,next=state
state=SK,next=seqnum
seqnum=SK
clascode=->TAXCLASS.clascode

[compyld]
Name=COMPYLD
Desc=Component Crop Yield
musym=->COMP.musym,next=ssaid
ssaid=SK,next=state
state=SK,next=seqnum
seqnum=SK

#
# The elements table provides a linkage to the sdbcodes table.
# It lists the "domid" for table/field pairs.  When importing,
# other tables, fields listed in this table will be assigned
# the domid specified by the elements table.  The domid is
# used in conjunction with the field value to form a multi-field
# key.  See the comments on the sdbcodes table for more details.
#
# The AutoLink entry below is used to describe how to link
# any field which has a domid listed in this table
#
[elements]
Name=ELEMENTS
Desc=Text description of field names
AutoLink=->SDBCODES.code,next=domid
col=DomFieldName
tables=DomTableName
domid=DomID

[ewoodlnd]
Name=EWOODLND
Desc=Existing Woodland
musym=->COMP.musym,next=ssaid
ssaid=SK,next=state
state=SK,next=seqnum
seqnum=SK
plantsym=->PLANTCOM.plantsym,next=musym

[forest]
Name=FOREST
Desc=Forest Understory
musym=->COMP.musym,next=ssaid
ssaid=SK,next=state
state=SK,next=seqnum
seqnum=SK
plantsym=->PLANTCOM.plantsym,next=musym

[hydcomp]
Name=HYDCOMP
Desc=Hydric Component Information
musym=->COMP.musym,next=ssaid
ssaid=SK,next=state
state=SK,next=seqnum
seqnum=SK

[inclusn]
Name=INCLUSN
Desc=Map Unit Inclusion
musym=->COMP.musym,next=ssaid
ssaid=SK,next=state
state=SK,next=seqnum
seqnum=SK

[interp]
Name=INTERP
Desc=Interpretation
musym=->COMP.musym,next=ssaid
ssaid=SK,next=state
state=SK,next=seqnum
seqnum=SK
grpcode=PK

[layer]
Name=LAYER
Desc=Soil Layer
musym=->COMP.musym,next=ssaid
ssaid=SK,next=state
state=SK,next=seqnum
seqnum=SK
layernum=PK

[mapunit]
Name=MAPUNIT
Desc=Map Unit
musym=->COMP.musym,next=ssaid
ssaid=SK,next=state

[mucoacre]
Name=MUOACRE
Desc=Map Unit County Acres
musym=->COMP.musym,next=ssaid
ssaid=SK,next=state
state=SK

[muyld]
Name=MUYLD
Desc=Map Unit Yield
musym=->COMP.musym,next=ssaid
ssaid=SK,next=state
state=SK

[plantcom]
Name=PLANTCOM
Desc=Plant Composition
plantsym=PK,next=musym
musym=SK,next=ssaid
ssaid=SK,next=state
state=SK,next=seqnum
seqnum=SK


#
#  This is the old format of this table from the
#  (XXX) database.  In MUIR, it's split up into
#  plcomname and plsicname.  This is included here so we
#  can import the older format too.
#
[plantnm]
Name=PLANTNM
Desc=Plant Names (Common and Scientific names)
plantsym=->PLANTCOM.plantsym,next=musym
musum=SK,next=ssaid
ssaid=SK,next=state
state=SK,next=seqnum
seqnum=SK

[plsciname]
Name=PLSCINAME
Desc=Plant Names (Scientific)
plantsym=->PLANTCOM.plantsym

[plcomname]
Name=PLCOMNAME
Desc=Plant Names (Common)
plantsym=->PLANTCOM.plantsym,next=state
state=SK

# same as plsciname, just in case filename got truncated to 8.3
[plscinam]
Name=PLSCINAME
Desc=Plant Names (Scientific)
plantsym=->PLANTCOM.plantsym

# same as plcomname, just in case filename got truncated to 8.3
[plcomnam]
Name=PLCOMNAME
Desc=Plant Names (Common)
plantsym=->PLANTCOM.plantsym,next=state
state=SK

[pwoodlnd]
Name=PWOODLND
Desc=Potential Woodland
musym=->COMP.musym,next=ssaid
ssaid=SK,next=state
state=SK,next=seqnum
seqnum=SK
plantsym->PLANTCOM.plantsym,next=musym

[rangenm]
Name=RANGENM
Desc=Range Name
rsid=PK

[rsprod]
Name=RSPROD
Desc=Range Site Production
musym=->COMP.musym,next=ssaid
ssaid=SK,next=state
state=SK,next=seqnum
seqnum=SK
rsid=->RANGENM.rsid

[ssacoac]
Name=SSACOAC
Desc=Soil Survey Area County Acreage
ssaid=PK,next=state
cntycode=PK

[ssarea]
Name=SSAREA
Desc=Soil Survey Area
ssaid=->SSACOAC.ssaid,next=state

[taxclass]
Name=TAXCLASS
Desc=Taxonomic Classification
clascode=PK

[windbrk]
Name=WINDBRK
Desc=Windbreak
musym=->COMP.musym,next=ssaid
ssaid=SK,next=state
state=SK,next=seqnum
seqnum=SK
plantsym->PLANTCOM.plantsym,next=musym

[wlhabit]
Name=WLHABIT
Desc=Wildlife Habitat
musym=->COMP.musym,next=ssaid
ssaid=SK,next=state
state=SK,next=seqnum
seqnum=SK

[woodmgt]
Name=WOODMGT
Desc=Woodland Management
musym=->COMP.musym,next=ssaid
ssaid=SK,next=state
state=SK,next=seqnum
seqnum=SK

[yldunits]
Name=YLDUNITS
Desc=Yield Units
# cropname autolinks to sdbcodes.code,domid

