dbo.SXASCLModelDefinition 
Default Table Name  SXASCLModelDefinition 
Definition  This table stores the Charging Model mapping definition for Sunrise Charge Logic. The mapping dictates the charging model that is mapped to the care level or visit type for a Site. 

dbo.SXASCLModelDefinition 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. 
MSRowVersion    timestamp  NO  Optimistic lock identifier using rowversion datatype. 
MSReplrowguid    uniqueidentifier  NO  Unique GUID used to support merge replication. 
ModelDefinitionID(PK)    int  NO  Auto generated unique primary key value. 
MappedType    int  NO  Use to store lookup table values. MappedType can be either 'VisitType' or 'CareLevel'. These values will be stored in the CV3EnumReference table. 
SCLLocationID    int  NO  Stores the unique ID of the Charging Model Location in SCL. This is the rev_location.id in SCL. Foreign key cannot be established as this table resides in a different database. 
CareLevelCode    varchar(15)  YES  Store unique code of the CareLevel. This is the code value from CV3CareLevel.Code in SCM. 
TypeCode    varchar(15)  YES  Store unique code of the Visit Type. This is the code value from CV3VisitType.Code in SCM. 
SiteID    int  NO  Identifies the unique distributed database ID where the row was inserted. Distributed databases are no longer supported so this column is deprecated. 

dbo.SXASCLModelDefinition Primary and Unique Keys 
Key Name  Key Type  Keys 
SXASCLModelDefinitionPK  PrimaryKey  ModelDefinitionID