The data model
The intermediate database currently has 16 tables. They all start with vs_, and each one holds part of your account data. This article explains what each table holds, its columns and how to join the tables for your reports.
Some older accounts also have, or have instead, tables from an earlier version that start with v_. This article doesn’t describe them.
How the tables are related
Section titled “How the tables are related”The center of the model is vs_checklist: one row per checklist. The other tables join to it, or to the answers, through their id_ columns.
| From | Column | To |
|---|---|---|
vs_checklist |
id_unit |
vs_unit (the checklist’s department) |
vs_checklist |
id_template_version |
vs_template (the template version) |
vs_question_answer |
id_checklist |
vs_checklist |
vs_comment |
id_checklist_question |
vs_question_answer |
vs_file |
id_comment |
vs_comment |
vs_issue |
id_checklist and id_answer |
vs_checklist and vs_question_answer |
vs_action_plan |
parent_id_checklist and child_id_checklist |
vs_checklist (the original checklist and its action plan) |
vs_checklist_tag, vs_users_assigned |
id_checklist |
vs_checklist |
vs_unit_tag |
id_unit |
vs_unit |
vs_template_tag |
id_template |
vs_template |
vs_template_question_config |
id_template_version |
vs_template |
When you join vs_comment or vs_file with vs_question_answer on id_checklist_question, keep two things in mind:
- Comments on unanswered questions don’t find a row, because those questions aren’t in
vs_question_answer. Their photos and files are invs_files_with_no_answer. - In a question with several options,
id_checklist_questionrepeats for each answered option, so the join duplicates the comments and files.
Users are joined by their email: vs_user has no user ID. The columns that end in _email, plus comment_creator_user, comment_update_user, file_creator_user and user_email_assigned, hold an email. The checklist_*_user and issue_*_user columns hold an internal number.
The id_app column identifies your IRISTRACE account. If your company has a single account, it has the same value in every row. It’s empty in vs_comment, vs_file and vs_files_with_no_answer, and it doesn’t exist in vs_users_assigned or vs_template_question_config.
Checklists and answers
Section titled “Checklists and answers”vs_checklist
Section titled “vs_checklist”One row per checklist. It doesn’t have deleted checklists or checklists from deleted departments. It does have archived ones, with their archive date.
| Column | What it is |
|---|---|
id_checklist |
Checklist ID |
checklist_number |
Checklist number as shown in IRISTRACE, with a hash sign (“#25”) |
checklist_tenant_id |
The same number, without the hash sign |
checklist_name, checklist_description |
Name and description |
id_unit |
Department or sub-department of the checklist |
id_template_version |
Template version it was created from |
id_checklist_status, checklist_status |
ID and name of its current status |
checklist_plan_date |
Planned date |
checklist_overdue_date |
Due date |
checklist_creation_date, checklist_update_date |
Date it was created and date of the last change |
checklist_answer_date |
Last time a question was answered |
checklist_completion_date |
Date it was finished |
checklist_archive_date, checklist_archive_flag |
Date it was archived; empty if it isn’t archived |
checklist_creator_user_email, checklist_answer_user_email, checklist_updater_user_email, checklist_completion_user_email |
Email of the person who created it, who answered it last, who changed it last and who finished it |
checklist_creation_user, checklist_answer_user, checklist_update_user, checklist_completion_user |
The same people, with their internal number |
checklist_score |
Checklist score, based on the template’s scoring mode |
checklist_maxscore |
Maximum score possible |
checklist_score_average |
Average score |
checklist_advanced_score |
The advanced scoring data, in JSON format |
checklist_type |
Checklist type |
checklist_audit_flag, checklist_audit_code, checklist_audit_num, checklist_audit_title |
From an old feature that is no longer used |
To understand the score, see Checklist score.
vs_question_answer
Section titled “vs_question_answer”One row for each answer given in a checklist. Unanswered questions don’t appear. In a question with several options or rows, there is one row for each answered option or row.
| Column | What it is |
|---|---|
id_checklist |
Checklist it belongs to |
id_checklist_question |
The question in that checklist. It links the answer to its comments and files |
id_question |
The question in the template |
id_answer |
Answer ID |
category_name, category_n_order, category_weight |
Category of the question, its position in the template and its weight |
question_label, question_alias, question_description |
Text, alias and description of the question |
question_n_order |
Position of the question in its category |
question_type |
Question type |
subquestion_label, subquestion_alias, answer_n_order |
The answered option or row, its alias and its position |
answer |
The answer: the text, the number or the value chosen |
answer_unit |
Unit of a numeric question |
min, max |
Minimum and maximum value of a numeric question |
min_issue, max_issue |
Values beyond which an issue is created |
score, max_score |
Score of the question and maximum score |
answer_user_email |
Email of the person who answered |
date_answer, hour_answer |
Date and time of the answer |
In this table, the positions (category_n_order, question_n_order and answer_n_order) start at 1.
vs_users_assigned
Section titled “vs_users_assigned”The people assigned to each checklist: id_checklist, id_user (internal number) and user_email_assigned.
vs_action_plan
Section titled “vs_action_plan”The action plans. Each row links a checklist with an action plan created from it. It also includes deleted checklists, so some of its IDs may not be in vs_checklist.
| Column | What it is |
|---|---|
parent_id_checklist |
The original checklist |
child_id_checklist |
The action plan checklist |
id_checklist_question |
The question in the original checklist it was created from, if it was created from a question |
Issues, comments and files
Section titled “Issues, comments and files”vs_issue
Section titled “vs_issue”One row per issue.
| Column | What it is |
|---|---|
id_issue, issue_name |
Issue ID and name |
id_checklist |
Checklist it’s in |
id_app |
Your IRISTRACE account |
id_answer |
The answer that created it, in vs_question_answer. Empty if it was created manually |
id_answer_fill |
The same ID, stored in the issue. It has a value even if the answer is no longer in vs_question_answer |
issue_type |
automatic if an answer created it and manual if a person created it |
issue_status |
Issue status |
issue_creation_date, issue_update_date |
Date it was created and date of the last change |
issue_creatior_email, issue_updater_email |
Email of the person who created it and who changed it last. The first column is really named this way, with the typo |
issue_acknowledge_date, issue_modified_date, issue_solved_date, issue_deactivate_date |
When it was verified, changed, solved or deactivated |
issue_acknowledge_user, issue_modified_user, issue_solver_user, issue_deactivate_user |
Who did it, with their internal number |
To learn how issues work, see Issues and action plans.
vs_comment
Section titled “vs_comment”The comments on the questions.
| Column | What it is |
|---|---|
id_comment, description |
Comment ID and text |
id_checklist_question |
The checklist question |
id_issue |
The issue it belongs to, if any |
comment_creator_user, comment_creation_date |
Email of the person who created it, and date |
comment_update_user, comment_update_date |
Email of the person who changed it last, and date |
vs_file
Section titled “vs_file”The photos and files added to a question. Each one is inside a comment.
| Column | What it is |
|---|---|
id_file, file |
File ID and name |
file_type |
File type |
id_comment, comment |
Comment it’s in and its text |
id_checklist_question |
The checklist question |
id_unit, id_account |
Department of the file (both columns have the same value) |
file_creation_date, file_creator_user |
Date and email of the person who added it |
vs_files_with_no_answer
Section titled “vs_files_with_no_answer”The photos and files from questions that have no answer. It has the same columns as vs_file, but with id_checklist instead of id_checklist_question.
Templates, departments and users
Section titled “Templates, departments and users”vs_template
Section titled “vs_template”One row for each version of each template. It includes deleted templates and versions: filter by the deletion dates if you don’t want them.
| Column | What it is |
|---|---|
id_template, template_name, template_description |
Template ID, name and description |
template_creation_date, template_archived_date, template_deletion_date |
When the template was created, archived and deleted |
id_template_version, template_version_version, template_version_name |
Version ID, number and name |
template_version_creation_date, template_version_update_date, template_version_deletion_date |
When the version was created, changed and deleted |
vs_template_question_config
Section titled “vs_template_question_config”How each template version is built, even if it has no checklists: one row for each option or row of each question.
| Column | What it is |
|---|---|
id_template, id_template_version, version |
Template and version |
id_question, question_label, question_type, question_n_order |
The question, its text, its type and its position |
id_category |
The category it’s in |
id_answer, subquestion_label, answer_n_order |
The option or row, its text and its position |
weight |
Weight of the option |
is_alert |
Whether the option creates an issue |
min, max, min_issue, max_issue, numeric_unit |
Limits, issue limits and unit of a numeric question |
Here question_n_order and answer_n_order start at 0, not at 1 as in vs_question_answer.
vs_unit
Section titled “vs_unit”One row per department or sub-department.
| Column | What it is |
|---|---|
id_unit, unit_name, unit_code |
ID, name and code |
unit_country, unit_region, unit_subregion, unit_province, unit_city, unit_address, unit_zip |
Its location |
id_parent, parent_name, parent_code and the parent_ location columns |
For a sub-department, the details of the department it belongs to |
vs_checklist_tag, vs_template_tag and vs_unit_tag hold the tags of checklists, templates and departments. Each row has the item (id_checklist, id_template or id_unit), the tag (tag) and its parent tag, if any (parent_tag).
vs_user and vs_app
Section titled “vs_user and vs_app”vs_user has the users: email, name, surname, time zone (timezone) and date format (mode_calendar). vs_app has your account’s ID (id) and name (name).
Related
Section titled “Related”Was this article helpful?
What went wrong?
Thank you for your feedback.
Need more help? Contact support.
Reviewed on October 26, 2026
