You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: migrations/versions/0c142bdd083d_add_next_four_rus12_tables.py
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,16 @@
1
-
"""add next rus12 tables
1
+
"""Add next four rus12 tables
2
2
3
-
Revision ID: 122a38524571
3
+
Revision ID: 0c142bdd083d
4
4
Revises: 86e3a75cf325
5
-
Create Date: 2026-02-09 15:59:36.418333
5
+
Create Date: 2026-02-10 18:10:58.410575
6
6
7
7
"""
8
8
fromalembicimportop
9
9
importsqlalchemyassa
10
10
11
11
12
12
# revision identifiers, used by Alembic.
13
-
revision='122a38524571'
13
+
revision='0c142bdd083d'
14
14
down_revision='86e3a75cf325'
15
15
branch_labels=None
16
16
depends_on=None
@@ -26,16 +26,16 @@ def upgrade() -> None:
26
26
sa.Column('loan_maturity_date', sa.Date(), nullable=True, comment='The date on which a loan is scheduled to be fully paid.'),
27
27
sa.Column('loan_original_amount', sa.Float(), nullable=True, comment='The original amount of a loan.'),
28
28
sa.Column('loan_balance', sa.Float(), nullable=True, comment='The amount of money still owned on a loan at the end of the reporting year.'),
29
-
sa.Column('for_rural_development', sa.Boolean(), nullable=True, comment='Whether or not the investment is for rural development.')
29
+
sa.Column('for_rural_development', sa.Boolean(), nullable=True, comment='Whether or not the investment is for rural development. This includes investments in any/all types of projects or products that were made to improve the economy and/or quality of life in the specified area.')
sa.Column('borrower_id_rus', sa.Text(), nullable=True, comment="Unique identifier of RUS (Rural Utilities Service) borrower. These ID's are structured as: two character state acronyms followed by four digits."),
34
34
sa.Column('borrower_name_rus', sa.Text(), nullable=True, comment='The name of the RUS (Rural Utilities Service) borrower.'),
35
35
sa.Column('plant_name_rus', sa.Text(), nullable=True, comment='Name of the plant as reported to RUS.'),
sa.Column('employees_full_time_num', sa.Integer(), nullable=True, comment='Number of full time employees.'),
38
-
sa.Column('employees_part_time_num', sa.Integer(), nullable=True, comment='Number of part time employees.'),
37
+
sa.Column('employees_full_time_num', sa.Integer(), nullable=True, comment='Number of employees hired full-time for normal operations of the system.'),
38
+
sa.Column('employees_part_time_num', sa.Integer(), nullable=True, comment='Number employees regularly employed on a part-time basis. Exclude employees hired for short periods of time to complete special jobs.'),
39
39
sa.Column('employee_hours_worked_total', sa.Float(), nullable=True, comment='Total number of hours worked by employees.'),
40
40
sa.Column('payroll_maintenance', sa.Float(), nullable=True, comment='The amount of payroll spent on plant maintenance.'),
41
41
sa.Column('payroll_operations', sa.Float(), nullable=True, comment='The amount of payroll spent on plant operations.'),
sa.Column('borrower_id_rus', sa.Text(), nullable=False, comment="Unique identifier of RUS (Rural Utilities Service) borrower. These ID's are structured as: two character state acronyms followed by four digits."),
47
47
sa.Column('borrower_name_rus', sa.Text(), nullable=True, comment='The name of the RUS (Rural Utilities Service) borrower.'),
48
-
sa.Column('source_of_energy', sa.Text(), nullable=False, comment='The source of energy (not plant type).'),
Copy file name to clipboardExpand all lines: src/pudl/metadata/fields.py
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@
50
50
REVENUE_CLASSES_EIA176,
51
51
REVENUE_CLASSES_EIA861,
52
52
RTO_CLASSES,
53
-
# SOURCE_OF_ENERGY_RUS12,
53
+
SOURCE_OF_ENERGY_RUS12,
54
54
SUBDIVISION_CODES_ISO3166,
55
55
TECH_CLASSES,
56
56
TECH_DESCRIPTIONS,
@@ -2663,11 +2663,11 @@
2663
2663
},
2664
2664
"employees_full_time_num": {
2665
2665
"type": "integer",
2666
-
"description": "Number of full time employees.",
2666
+
"description": "Number of employees hired full-time for normal operations of the system.",
2667
2667
},
2668
2668
"employees_part_time_num": {
2669
2669
"type": "integer",
2670
-
"description": "Number of part time employees.",
2670
+
"description": "Number employees regularly employed on a part-time basis. Exclude employees hired for short periods of time to complete special jobs.",
2671
2671
},
2672
2672
"employee_hours_worked_total": {
2673
2673
"type": "number",
@@ -3320,7 +3320,12 @@
3320
3320
},
3321
3321
"for_rural_development": {
3322
3322
"type": "boolean",
3323
-
"description": "Whether or not the investment is for rural development.",
3323
+
"description": (
3324
+
"Whether or not the investment is for rural development. "
3325
+
"This includes investments in any/all types of projects or "
3326
+
"products that were made to improve the economy and/or quality "
3327
+
"of life in the specified area."
3328
+
),
3324
3329
},
3325
3330
"forecast_year": {
3326
3331
"type": "integer",
@@ -7092,7 +7097,7 @@
7092
7097
"source_of_energy": {
7093
7098
"type": "string",
7094
7099
"description": "The source of energy (not plant type).",
0 commit comments