dbo.SXAINVLocation 
Default Table Name  SXAINVLocation 
Definition  Locations that are specific to Inventory 

dbo.SXAINVLocation Columns 
ColumnName  Domain  Datatype  NULL  Definition 
Build    int  NO  Identifies the build number and patch level of the software that inserted/updated this row. The format is the Build number followed by 3 digits for the patch level which is typically 000. The build number is tied to specific versions of the software, e.g. Sunrise 15.3 is Build 5021, Sunrise 16.3 is Build 5503. 
TouchedBy    varchar(50)  NO  Information about the user that last updated the row. This will typically be the UserID (IDCode from CV3User table) and may be prefixed with an environment identifier followed by an underscore, e.g. b96d2bf5_jongmore. 
TouchedWhenUTC    datetimeoffset(3)  NO  The date and time that the row was last updated including the time zone offset from UTC, for example 2015-01-30 04:55:04.372 -05:00. The date and time is based on the Enterprise Time Zone. 
CreatedBy    varchar(50)  NO  Information about the user that created the row. This will typically be the UserID (IDCode from CV3User table) and may be prefixed with an environment identifier followed by an underscore, e.g. b96d2bf5_jongmore. 
CreatedWhenUTC    datetimeoffset(3)  NO  The date and time that the row was created including the time zone offset from UTC, for example 2015-01-30 04:55:04.372 -05:00. The date and time is based on the Enterprise Time Zone. 
Active    bit  NO  Denotes whether the row is active or not, 0 means the row has been soft deleted or deactivated. 
MSRowVersion    timestamp  NO  Optimistic lock identifier using rowversion datatype. 
LocationID(PK)    bigint  NO  Auto generated unique primary key value. 
DataScopeNum    int  NO  FK to SXAINVOrgUnitAppIDXref table 
LocationName    varchar(200)  NO  Location Name - May be NULL unless the Name is typed in as freetext 
LocationType    int  NO  Enum field for the location origin (CV3Location, Pharmacy, or Inventory) 
ParentID    bigint  YES  ID of Parent Location 
ParentLocationType    int  YES  Type of Parent Location (CV3, Pharmacy, Surgery, or Inventory) 
IsInventoryLocation    bit  NO  Flag to indicate the location is used to store Inventory Items 
FacilityGUID    HVCIDdt  NO  Facility For the selected Location 
LocationGUID    bigint  YES  FK to CV3Location 
PharmacyID    bigint  YES  FK to CV3Pharmacy 
PharmacyLocationConfigID    bigint  YES  FK to SXAMMPharmacyLocationConfig 
FloorstockID    bigint  YES  FK to SXAMMFloorstock 
FloorstockLocConfigID    bigint  YES  FK to SXAMMFloorstockLocConfig 
ParentLocationGUID    bigint  YES  FK to CV3Location 
ParentPharmacyID    bigint  YES  FK to CV3Pharmacy 
ParentPharmacyLocationConfigID    bigint  YES  FK to SXAMMPharmacyLocationConfig 
ParentFloorstockID    bigint  YES  FK to SXAMMFloorstock 
ParentFloorstockLocConfigID    bigint  YES  FK to SXAMMFloorstockLocConfig 
IsADM    bit  NO  Flag indicating if the location (or parent location) is an ADM location. 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 

dbo.SXAINVLocation Primary and Unique Keys 
Key Name  Key Type  Keys 
SXAINVLocationPK  PrimaryKey  LocationID