diff --git a/src/sql/0-run-first/contributions.sql b/src/sql/0-run-first/contributions.sql index 752ddd2..d6f7d6f 100644 --- a/src/sql/0-run-first/contributions.sql +++ b/src/sql/0-run-first/contributions.sql @@ -5,9 +5,9 @@ DROP TABLE IF EXISTS engineer_contributions; CREATE TABLE engineer_contributions AS SELECT CONCAT(users.lname, ', ', users.fname) AS `Engineer`, - project_lifecycle.project_number AS `Project Number`, + project_lifecycle.project_number AS `ProjectNumber`, project_lifecycle.timestamp, - new_value AS `Action Type`, + new_value AS `ActionType`, CONCAT(SUBSTR(project_lifecycle.project_number, 1, 3), ' - ', IF(ap.proj_type = 'Warranty', 'Structural', ap.proj_type)) AS `Region`, clients.name AS `Client`, @@ -45,10 +45,10 @@ DROP TABLE IF EXISTS rdu_soil_contributions; CREATE TABLE rdu_soil_contributions AS -SELECT CONCAT(users.email) AS `Technician Email`, - project_lifecycle.project_number AS `Project Number`, +SELECT CONCAT(users.email) AS `Technician`, + project_lifecycle.project_number AS `ProjectNumber`, project_lifecycle.timestamp, - new_value AS `Action Type`, + new_value AS `ActionType`, 'RDU - Soil' AS `Region`, clients.name AS `Client`, ap.description AS `Description`