Repository navigation
4 Data Storage and Management
xyssun edited this page Nov 17, 2024
·
5 revisions
Annual reports and sustainability reports published by various companies. Click to learn more about specific data structure transformation methods and tools.
Since MySQL can operate on various operating systems and integrates seamlessly with multiple programming languages, this project uses MySQL as the data storage solution.
The esg_database schema is designed to manage and analyze ESG (Environmental, Social, and Governance) information for various firms. Below is a breakdown of each table in the database.
| Column | Type | Description |
|---|---|---|
user_id |
INT, Primary Key, Auto Increment | Unique identifier for each user |
user_name |
VARCHAR(50), Unique | Username |
password |
VARCHAR(255) | User's password (encrypted) |
phone_number |
VARCHAR(20) | Contact number |
role |
ENUM('person','firm','regulator') | User's role, either person, firm, or regulator
|
| Column | Type | Description |
|---|---|---|
firm_name |
VARCHAR(50), Unique | Name of the firm |
industry |
VARCHAR(100) | Industry of the firm |
country |
VARCHAR(50) | Country where the firm is located |
website |
VARCHAR(255) | Firm's website URL |
| Column | Type | Description |
|---|---|---|
report_id |
INT, Primary Key, Auto Increment | Unique identifier for each report |
firm_name |
VARCHAR(255) | Name of the firm submitting the report |
user_name |
VARCHAR(255) | Name of the user who uploaded the report |
report_name |
VARCHAR(255) | Name of the report file |
report_year |
YEAR | Year of the report |
report_path |
VARCHAR(255) | File path of the uploaded report |
upload_date |
TIMESTAMP, Default: CURRENT_TIMESTAMP | Date and time the report was uploaded |
| Column | Type | Description |
|---|---|---|
score_id |
INT, Primary Key, Auto Increment | Unique identifier for each score entry |
report_id |
INT | ID of the associated report |
company_name |
VARCHAR(255) | Name of the company |
Total_Score |
DECIMAL(5,2) | Total ESG score |
Rating |
VARCHAR(50) | ESG rating |
E_Score, S_Score, G_Score
|
DECIMAL(5,2) | Individual scores for Environmental, Social, and Governance factors |
| Various metrics | DECIMAL, INT, VARCHAR, etc. | Additional metrics for environmental impact, social responsibility, and governance practices (e.g., Emission_intensities, Board_independence, Work_related_injuries) |
| Column | Type | Description |
|---|---|---|
data_id |
INT, Primary Key, Auto Increment | Unique identifier for each data entry |
company_name |
VARCHAR(255) | Name of the company |
metric |
VARCHAR(255) | Specific ESG metric |
value |
DECIMAL(10,2) | Value of the metric |
unit |
VARCHAR(50) | Unit of measurement |
time |
TIMESTAMP, Default: CURRENT_TIMESTAMP | Date and time the metric was recorded |
similarity |
DECIMAL(10,2) | Similarity measure for metric matching |
confidence |
DECIMAL(10,2) | Confidence level of the metric's accuracy |
This structure allows efficient storage and retrieval of ESG-related data, enabling analysis and reporting on environmental, social, and governance factors for different firms and industries.