Generated by MySQL Workbench Model Documentation v1.0.0 - Copyright (c) 2015 Hieu Le
Table: acknowledged_Events
Acknowledged Events
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
user_id
INT
Not null
foreign key to column id
on table users
.
event_id
INT
Not null
foreign key to column id
on table events
.
created_at
TIMESTAMP
NULL
updated_at
TIMESTAMP
NULL
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
acknowledged_events_id_index
id
INDEX
acknowledged_events_user_id_foreign
user_id
INDEX
acknowledged_events_event_id_foreign
event_id
INDEX
Items of a checkList
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
title
VARCHAR(45)
Not null
description
LONGTEXT
NULL
done
TINYINT
Not null
checkList_id
INT
Not null
foreign key to column id
on table checkLists
.
link
LONGTEXT
NULL
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
checklist_items_id_index
id
INDEX
checklist_items_checklist_id_foreign
checkList_id
INDEX
The names of tables where the checklist can be connected to.
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
name
VARCHAR(45)
Not null
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
checklist_tables_id_index
id
INDEX
Type of checkList
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
name
VARCHAR(45)
Not null
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
checklist_types_id_index
id
INDEX
contains checkLists
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
recordId
INT
Not null
id of the element on the specified table
checkListTable_id
INT
Not null
foreign key to column id
on table checkList_Tables
.
checkListType_id
INT
Not null
foreign key to column id
on table checkList_Types
.
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
checklists_id_index
id
INDEX
checklists_checklisttable_id_foreign
checkListTable_id
INDEX
checklists_checklisttype_id_foreign
checkListType_id
INDEX
contain the classes from the cpnv database
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
name
VARCHAR(20)
Not null
friendlyId
VARCHAR(20)
Not null
id of the class on the cpnv database
created_at
TIMESTAMP
NULL
updated_at
TIMESTAMP
NULL
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
classes_id_index
id
INDEX
Table: comments
contains comments to tasks
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
user_id
INT
Not null
foreign key to column id
on table users
.
task_id
INT
Not null
foreign key to column id
on table tasks
.
comment
LONGTEXT
Not null
created_at
TIMESTAMP
NULL
updated_at
TIMESTAMP
NULL
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
comments_id_index
id
INDEX
comments_user_id_foreign
user_id
INDEX
comments_task_id_foreign
task_id
INDEX
time spend on task
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
user_task_id
INT
Not null
foreign key to column id
on table users_tasks
.
created_at
TIMESTAMP
NULL
updated_at
TIMESTAMP
NULL
ended_at
DATETIME
Not null
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
durations_tasks_id_index
id
INDEX
durations_tasks_user_task_id_foreign
user_task_id
INDEX
Events append on a project
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
user_id
INT
Not null
foreign key to column id
on table users
.
project_id
INT
Not null
foreign key to column id
on table projects
.
description
LONGTEXT
Not null
created_at
TIMESTAMP
NULL
updated_at
TIMESTAMP
NULL
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
events_id_index
id
INDEX
events_user_id_foreign
user_id
INDEX
events_project_id_foreign
project_id
INDEX
Files by project
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
name
VARCHAR(45)
Not null
description
LONGTEXT
Not null
url
LONGTEXT
Not null
mime
VARCHAR(45)
Not null
size
VARCHAR(45)
Not null
project_id
INT
Not null
foreign key to column id
on table projects
.
created_at
TIMESTAMP
NULL
updated_at
TIMESTAMP
NULL
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
files_id_index
id
INDEX
files_project_id_foreign
project_id
INDEX
Members of a project
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
user_id
INT
Not null
foreign key to column id
on table users
.
project_id
INT
Not null
foreign key to column id
on table projects
.
created_at
TIMESTAMP
NULL
updated_at
TIMESTAMP
NULL
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
memberships_id_index
id
INDEX
memberships_user_id_foreign
user_id
INDEX
memberships_project_id_foreign
project_id
INDEX
Laravel table auto generated
Column
Data type
Attributes
Default
Description
migration
VARCHAR(255)
Not null
batch
INT
Not null
Pictures used on scenarios
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
project_id
INT
Not null
foreign key to column id
on table projects
.
url
VARCHAR(500)
Not null
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
mockups_id_index
id
INDEX
mockups_project_id_foreign
project_id
INDEX
Contains projects
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
name
VARCHAR(45)
Not null
description
LONGTEXT
Not null
startDate
DATETIME
Not null
endDate
DATETIME
Not null
created_at
TIMESTAMP
NULL
updated_at
TIMESTAMP
NULL
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
projects_id_index
id
INDEX
Contains diferent users roles
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
name
VARCHAR(15)
Not null
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
roles_id_index
id
INDEX
contains tests of a scenario
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
date
DATETIME
Not null
resume
VARCHAR(500)
NULL
done
TINYINT
NULL
status of the test
user_id
INT
Not null
foreign key to column id
on table users
.
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
scenario_tests_id_index
id
INDEX
scenario_tests_user_id_foreign
user_id
INDEX
Contains scenarios
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
description
VARCHAR(500)
NULL
name
VARCHAR(200)
Not null
actif
TINYINT
Not null
'0'
know if scenario is aprouved for testing
test_validated
TINYINT
Not null
'0'
know if tests are done and OK
checkList_item_id
INT
Not null
foreign key to column id
on table checkList_Items
.
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
scenarios_id_index
id
INDEX
scenarios_checklist_item_id_foreign
checkList_item_id
INDEX
know if a student still into the school
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
name
VARCHAR(20)
Not null
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
states_id_index
id
INDEX
Tasks status
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
name
VARCHAR(20)
Not null
description
VARCHAR(60)
NULL
created_at
TIMESTAMP
NULL
updated_at
TIMESTAMP
NULL
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
Result of each step of a scenario
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
step_id
INT
Not null
foreign key to column id
on table steps
.
test_id
INT
Not null
foreign key to column id
on table scenario_tests
.
result
VARCHAR(1000)
Not null
the result written by the user
succes
INT
Not null
'-1'
status of the step
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
step_test_results_id_index
id
INDEX
step_test_results_step_id_foreign
step_id
INDEX
step_test_results_test_id_foreign
test_id
INDEX
Scenario steps
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
action
VARCHAR(1000)
Not null
What is supposed to do
result
VARCHAR(1000)
Not null
What is supposed to append
order
INT
Not null
scenario_id
INT
Not null
foreign key to column id
on table scenarios
.
mockup_id
INT
NULL
foreign key to column id
on table mockups
.
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
steps_id_index
id
INDEX
steps_scenario_id_foreign
scenario_id
INDEX
steps_mockup_id_foreign
mockup_id
INDEX
Type of Task
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
name
VARCHAR(30)
Not null
created_at
TIMESTAMP
NULL
updated_at
TIMESTAMP
NULL
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
tasktypes_id_index
id
INDEX
Contains tasks
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
name
VARCHAR(45)
Not null
duration
INT
Not null
priority
INT
Not null
project_id
INT
Not null
foreign key to column id
on table projects
.
parent_id
INT
NULL
foreign key to column id
on table tasks
.
objective_id
INT
NULL
type_id
INT
NULL
foreign key to column id
on table taskTypes
.
status_id
INT
NULL
foreign key to column id
on table statuses
.
created_at
TIMESTAMP
NULL
updated_at
TIMESTAMP
NULL
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
tasks_id_index
id
INDEX
tasks_project_id_foreign
project_id
INDEX
tasks_parent_id_foreign
parent_id
INDEX
tasks_type_id_foreign
type_id
INDEX
tasks_status_id_foreign
status_id
INDEX
Contains users
User are retrieved from the cpnv database
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
friendlyid
VARCHAR(255)
Not null
id given from cpnv database
firstname
VARCHAR(20)
Not null
lastname
VARCHAR(20)
Not null
mail
VARCHAR(45)
Not null
role_id
INT
Not null
foreign key to column id
on table roles
.
class_id
INT
NULL
foreign key to column id
on table classes
.
state_id
INT
Not null
foreign key to column id
on table states
.
password
VARCHAR(100)
Not null
remember_token
LONGTEXT
Not null
avatar
VARCHAR(45)
Not null
created_at
TIMESTAMP
NULL
updated_at
TIMESTAMP
NULL
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
users_id_index
id
INDEX
users_role_id_foreign
role_id
INDEX
users_class_id_foreign
class_id
INDEX
users_state_id_foreign
state_id
INDEX
Users on each task
Column
Data type
Attributes
Default
Description
id
INT
PRIMARY, Auto increments, Not null
user_id
INT
Not null
foreign key to column id
on table users
.
task_id
INT
Not null
foreign key to column id
on table tasks
.
created_at
TIMESTAMP
NULL
updated_at
TIMESTAMP
NULL
Name
Columns
Type
Description
PRIMARY
id
PRIMARY
users_tasks_id_index
id
INDEX
users_tasks_user_id_foreign
user_id
INDEX
users_tasks_task_id_foreign
task_id
INDEX