Skip to main content

Data Model

Data is value

Thanks to our data connector, Mobility Work offers you a set of database tables that bring together your network's maintenance data.

This data can be consulted via a Business Intelligence interface or - quite simply - with Microsoft Excel (via an ODBC connection).

Aggregating and analyzing this data provides crucial information on equipment performance, maintenance trends and opportunities for improvement.

By combining this data with other relevant sources (MES, for example), it is possible to obtain a comprehensive overview that can be used to optimize maintenance programs and ensure ongoing equipment availability.

Our solution therefore offers added value to maintenance managers, enabling them to effectively manage and make optimum use of plant maintenance data.

Different types of key

id, short_id, legacy_id which foreign key to choose for joins?

  • legacy_id: old key system, use it only if it's the only key corresponding to the primary key of the table you want to make your join with.
  • my entity]_id is a database-independent key, which can take 2 formats depending on the table
    • character string of 50 characters
    • character string with the pattern xxxxxxxx-xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
  • my entity]_short_id: equivalent to a hash of [my entity]_id
    • Although "short", each key is guaranteed unique, so you can use it without risk of collision.

Date/Time according to which timezone.

  • All Date/Time values are expressed in terms of your network's timezone.

No time limit for tables: all data has been present since the creation of your network.

Table details

_changelog

Changelog (evolutions) of the data model of our B.I. One line for each new version

KeyValueComment
date2022-09-10Date of update (addition, deletion, modification) of our data model
change- Added tag_groups table to map tags to groups
  • Added tag_code column on tags table, you are suggested to rely on the tag_code for universal reference instead of tag_id (or tag_legacy_id)
  • Added this changelog to keep you informed of changes on your db schema | Update description |

_parameters

Information on the network and date of last data update

KeyValueComment
last_export_dateYYYY-MM-DD HH:MM:SSDatabase updated every 24 hours
network.idxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
network.id_legacyxxx
network.namexxxxxxx Factory
network.timezoneEurope/Paris

activities

List of activities in your network

KeyTypeNullValueComment
activity_idintNOxxxxxxactivity id
task_idvarchar(255)NOxxxxxxxxxxxxxxxxxxxxxxxxxxxId of the task to which this activity is linked.
task_legacy_idvarchar(255)NOxxxxxxId of the task to which this activity is linked.
task_short_idvarchar(255)NOxxxxxxId of the task to which this activity is linked.
equipment_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxId equipment for this activity.
member_idchar(36)YESxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxId of the person who carried out the activity.
member_legacy_idintYESxxxxId of the person who carried out the activity.
namevarchar(2000)NORemplacement courroie
duration_in_minutesintNO60Activity duration in minutes.
started_atdatetimeNOYYYY-MM-DD HH:MM:SSDate/time of activity start

equipments

List of network equipment

KeyTypeNullValueComment
equipment_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxequipment id
equipment_legacy_idintNO178777equipment id
namevarchar(255)NOEASYWASH XL 140 - PR BAC RETENTIONEquipment name
descriptionvarchar(3000)YESBac de rétention pour fontaine de dégraissageEquipment description
cost_centervarchar(255)YESRM310-OPE-PACEquipment cost center
external_referencevarchar(255)YESMW-277bf489-def4-4dsc-befc-fbeUs65be1e6Your (ERP or other master data) reference
is_spare_partvarchar(5)NO“true” ou “false”If true is a spare part.
archived_atdatetimeYESYYYY-MM-DD hh:mm:sscorresponds to the date on which the equipment had been archived
external_referencevarchar(255)YESOnly for spare part - provide a way to access spare parts requirements

equipments_relationships

Define relation between equipment

Id and legacy id are provide for explorer relation between equipments.

KeyTypeNullValueComment
equipment_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxequipment id
equipment_legacy_idintNO178777equipment id
linked_equipment_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxequipment id of linked equipment
linked_equipment_idintNO178777equipment id of linked equipment

equipments_tags

Lists all (0..*) tags linked to a piece of equipment.

KeyTypeNullValueComment
equipment_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxequipment id
equipment_legacy_idintNO635343equipment id
tag_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxTag id
tag_legacy_idintNO7654Tag is
tag_namevarchar(255)NOMachine critiqueTag name
tag_codevarchar(255)NO$preventive, mecanique, $critical_equipmenttag code to tags association table for easier cross networks / cross sources comparison

spare_part_stocks

  • Liste des spare part avec stock, stock mini et maxi…
KeyTypeNullValueComment
equipment_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxequipment id
equipment_legacy_idintNO635343equipment id
external_referencevarchar(255mw-cjcwxwcx-987Your identifier. Several spare parts may have the same ID but a different location. Circumvent the lack of multiple locations.
namevarchar(255)NOName of spare partEx : 0__Motor Power 0_501
storage_locationvarchar(255)YESLocation of spare part (free format)ex : 32_65_007
current_stock_quantitydecimal(10,0)YESCurrent stockex : 25
minimum_stockdecimal(10,0)YESMinimum stock
maximum_stockdecimal(10,0)YESMaximum stock
unit_price_in_lowest_currency_unitYESPrice in centimesEx : unit_price_in_base_currency_unit = 10,25 EUR
unit_price_in_lowest_currency_unit = 1025 EUR
unit_price_in_base_currency_unitYESPrice in currency
unit_price_currencychar(3)NOCurrency of spare partEx : EUR, USD

spare_parts_movements_beta

Add spare parts movements, including replenishment, consumption and inventory, this is subject to change and/or be deleted at any time, do not depend on this in production.

KeyTypeNullValueComment
movement_idchar(40)NO011c117fe759c77ee1219a5bd6688b7ba0d08654Unique movement identifier
spare_part_legacy_idint unsignedNO162941Spare part legacy ID
spare_part_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxSpare part ID
movement_reporter_legacy_idint unsignedYES2162Id of the user who performed the movement
movement_reporter_idchar(36)YESxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxUUID of the user who performed the movement
spare_part_namevarchar(255)NO0__LEROY SOMER MB 2201 MOOC i=10_402Name of spare part
movement_datedatetimeNO2020-11-11 23:00:00Movement date/time
movement_typevarchar(255)NOreplenishment, consumption, physical_recount, return_of_consumptionMovement type
movement_metadatajsonYES{"origin": "integrations"}This field gives us the ability to add metadata over time to enrich the information available on this movement.
movement_quantitydecimal(10,0)NO44Quantity of movement parts
task_idvarchar(255)YESSzU0Nk1NTU3SNUozTtYAAAId of the task if the movement is performed during a task. Example: consumption of spare parts in the activity of a task.
known_stock_quantity_before_movementdecimal(10,0)YES21Quantity of spare parts prior to movement
unit_price_in_lowest_currency_unitbigintYES1200Tunit price in centimes
unit_price_in_base_currency_unitdecimal(10,0)YES12Unit price in currency
unit_price_currencychar(3)YESEUR

members

List of users on your network.

KeyTypeNullValueComment
member_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxUser id
member_legacy_idintNO56544USer id
first_namevarchar(255)NOlaurentLast name
last_namevarchar(255)NOxxxxxxxxFirst name
emailvarchar(255)NO[email protected]eMail
rolevarchar(255)NOadmin, provider, tech, production, partner_apiUser role, possible values : admin, provider, tech, production, partner_api

meter_reading

List of meter reading on your network equipment.

KeyTypeNullValueComment
measurement_datedatetimeNOYYYY-MM-DD HH:MM:SSMeter measurement date/time.
This date/time is expressed according to the time zone of your network.
valuevarchar(255)NO1.2Measurement value.
The decimal separator is left up to you (often depending on your system of measurement "." in Europe "," in the U.S.).
unit_symbolvarchar(255)NOKwUnit of measurement symbol.
unit_namevarchar(255)NOKilowattName of unit of measurement.
dimensionvarchar(255)NOPower countersDimension
activity_idintNO761116id of measurement activity
task_idvarchar(255)NOxxxxxxxxxxxxxxxxxxxxxid of measurement task
task_short_idvarchar(255)NO851281id of measurement task
task_legacy_idvarchar(255)NO852281id of measurement task
equipment_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxid of measuring equipment
equipment_legacy_idintNO261280id of measuring equipment

tag_groups

List of tag groups in your network.

KeyTypeNullValueComment
tag_group_idintNO503Tag group id
tag_group_namevarchar(255)NOType de maintenanceTag group name

tags

Tags list

KeyTypeNullValueComment
tag_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxTag id
tag_legacy_idintNO897Tag id
tag_namevarchar(255)NOCorrectifsTag name
tag_codevarchar(255)NO$correctiveCode identifier (unique) defining your tag independently of the database. If it begins with $, then it's a tag created by Mobility work and the code cannot be modified. The "hard" code ensures the code's consistency over time, for example in the case of a database.
tag_group_idintYES7654id of the tag group to which your tag belongs (if belongs to a tag group, otherwise Null)
tag_group_namevarchar(255)YESType de maintenanceName of the tag group to which your tag belongs if it belongs to a tag group, otherwise Null)

tasks

Tasks list

KeyTypeNullValueComment
task_idvarchar(255)NOxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
task_legacy_idvarchar(255)NO5c4761e1
task_short_idvarchar(255)NO5c4761e1
equipment_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxUUID of the equipment linked to the task
descriptionvarchar(3000)NOPrév (6m) / MP-147-31-02 Convoyeur entrée étiqueteuse
scheduled_fromdatetimeNOYYYY-MM-DD HH:MM:SS
scheduled_todatetimeNOYYYY-MM-DD HH:MM:SS
done_datedatetimeYESYYYY-MM-DD HH:MM:SS ou NULL
estimated_stop_timeintYES70Estimated stop time (minutes)
estimated_intervention_timeintyes120Estimated intervention time (minutes)
statusvarchar(255)scheduled, in_progress, completed, canceled
is_part_of_maintenance_planvarchar(5)NO“true” ou “false”true if task is a part of a maintenance plan. false if not part of a maintenance plan.
maintenance_plan_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxUUID of the maintenance plan that generated the task
members_involved_countintYESNumber of involved members for the task
activities_countintYESActivities count for the task
cumulated_duration_in_minutesintYESActual cumulated duration (minutes) spent on the tasks based on activities
actual_task_duration_variation_percentageintYESVariation percentage between actual & expected

tasks_assignees

Link between user(s) assigned to a given task and the tasks.

  • relationship table n..m
  • allows you to list
    • users linked to a task
    • tasks linked to a user
KeyTypeNullValueComment
task_idvarchar(255)NOxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxTask id
task_legacy_idvarchar(255)NO73536353Task id
task_short_idvarchar(255)NO73536353Task id
member_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxUser id
member_legacy_idintNO7363User id

tasks_tags

Link between tags and tasks

  • relationship table n..m
  • allows you to list
    • All tags associated with a task
    • The set of tasks associated with a tag
KeyTypeNullValueComment
task_idvarchar(255)NOxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxTask id
task_legacy_idvarchar(255)NO2415869Task id
task_short_idvarchar(255)NO2415869Task id
tag_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxTag id
tag_legacy_idintNO2098Tag id
tag_namevarchar(255)NOMachine critiqueTag name
tag_codevarchar(255)NO$preventive,mecanique, $critical_equipmenttag code to tags association table for easier cross networks / cross sources comparison

maintenance_plans_beta

ClefTypeNullValeurCommentaire
maintenance_plan_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxMaintenance plan UUID
equipment_idchar(36)NOxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxEquipment UUID
descriptiontinyint(1)NONettoyage de la couche de carbonate sous le socle de support du broyeur (cave)Maintenance plan description in free text format (supports Markdown format)
scheduled_fromdatetimeNOYYYY-MM-DD HH:MM:SSMaintenance plan start date
scheduled_task_durationintYESTask duration
estimated_stop_timeintYESPlanned downtime in minutes
estimated_intervention_timeintYESPlanned maintenance time in minutes
freqvarchar(255)YESDAILY, WEEKLY, MONTHLYFrequency days, week(s), month(s), year(s). This value may be zero for maintenance plans with no frequency: PLC maintenance plans.
intervalvarchar(255)YESThis value can be zero for maintenance plans with no intervals: PLC maintenance plans.
statusvarchar(255)NOscheduled, in_progress, completed, canceledTask status