Data Models

What is the Legal Metrics Data Model?

A Data Model is like a view, a “virtual table” that sits on top of your actual data table. Data Models are used to support specific metrics reports. Legal Metrics has developed standard Data Models for your onboarding convenience.

The Legal Metrics Data Model used to locally aggregate your data has 2 data sources:

  • Accounting
  • Human Resources

These 2 data sources are necessary for all Legal Metrics standard reports. The data sources have multiple data tables and fields that are used by your Local Calculator.

Think of the data source tables and fields as a set of spreadsheets that are combined to calculate business management metrics on your behalf.

Legal Metrics Data Models can seamlessly map to your data sources, link your data with your business logic, and expose enriched datasets to relevant end-users for self-exploration through interactive reports. See the bottom right hand corner of this diagram (and read on) to see where this data fits into your business analytics flow:

Accounting Tables

Projects

Field LabelData TypeCalculator UsageValue/Example
projectIdvarcharJoin IDSource System ID
namevarcharMetric DependencyFor display purposes
companyIdvarcharJoin IDSource System ID
countryvarcharMetric DependencyUSA
cityvarcharMetric DependencyAnytown
departmentvarcharMetric DependencyCorporate, Litigation
practicevarcharMetric DependencyFinance, M&A
feeTypevarcharMetric DependencyFixed, Hourly
isActivebitMetric DependencyYes, No
sourceCreatedDatedateMetric Dependency6/25/2020

Companies

Field LabelData TypeCalculator UsageValue/Example
companyIDvarcharJoin IDSource System ID
namevarcharMetric DependencyFor display purposes
isActivebitMetric DependencyYes, No
sourceCreatedDatebitMetric Dependency9/25/2012

People

Field LabelData TypeCalculator UsageValue/Example
sourceUserIdvarcharJoin IDSource System ID
companyUserIdvarcharJoin IDSource System ID
isActivebitMetric DependencyYes, No
sourceCreatedDatedateMetric Dependency7/25/2017

ProjectsTime

Field LabelData TypeCalculator UsageValue/Example
projectsTimeIdvarcharJoin IDSource System ID
projectIdvarcharJoin IDSource System ID
sourceUserIdvarcharJoin IDSource System ID
hoursDecimaldecimalMetric Dependency28.25
hoursvarcharMetric Dependency28
minutesintMetric Dependency25
isBilledbitMetric DependencyYes, No
invoiceIdvarcharJoin IDSource System ID
sourceCreatedDatedateMetric Dependency6/28/2020

Invoices

Field LabelData TypeCalculator UsageValue/Example
invoiceIdvarcharJoin IDSource System ID
invoiceStatusvarcharMetric DependencyActive, Complete
invoiceDateSentdateMetric Dependency6/25/2020
fixedCostbitMetric DependencyYes, No
fixedCostValuedecimalMetric Dependency$50,000

ProjectsPeople

Field LabelData TypeCalculator UsageValue/Example
projectsPeopleIdvarcharJoin IDSource System ID
projectIdvarcharJoin IDSource System ID
sourceUserIdvarcharMetric DependencySource System ID
leadsProjectbitMetric DependencyYes, No
startedDatedecimalMetric Dependency4/25/2022
finishedDatedecimalMetric Dependency6/25/2022

InvoicesPeople

Field LabelData TypeCalculator UsageValue/Example
invoicesPeopleIdvarcharJoin IDSource System ID
invoiceIDvarcharJoin IDSource System ID
sourceUserIdvarcharJoin IDSource System ID
roleRatedecimalMetric Dependency$400

Human Resources Tables

People

Field LabelData TypeCalculator UsageValue/Example
sourceUserIdvarcharJoin IDSource System ID
companyUserIdvarcharJoin IDSource System ID
firstNamevarcharMetric DependencyLuke
lastNamevarcharMetric DependencyMorrison
departmentvarcharMetric DependencyCorporate, Litigation
practicevarcharMetric DependencyFinance, M&A
jobTitlevarcharMetric DependencyAssociate, Partner
countryvarcharMetric DependencyUSA
cityvarcharMetric DependencyHouston
sourceCreatedDatedateMetric Dependency6/25/2015
gendervarcharMetric DependencyMale, Female, Other, Skip
ethnicityvarcharMetric DependencyWhite, African American, Hispanic, Skip
isLGBTQbitMetric DependencyYes, No, Skip
isDisabledbitMetric DependencyYes, No, Skip
isMilitarybitMetric DependencyYes, No, Skip
isActivebitMetric DependencyYes, No
isFTEbitMetric DependencyYes, No
hourlyRoleRatedecimalMetric Dependency$250

Click here to access a more detailed Entity Relationship Diagram (ERD)