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
db_table_comment="Table to store BCGHG ID metadata. Once an operation or facility meets the criteria for an ID, then it is issued one."
46
+
db_table_comment="Table to store BCGHG (BC Greenhouse Gas) ID metadata. Once an operation or facility meets the criteria for an ID, then it is issued one."
db_comment="Comments from admins in the case that a BC OBPS Regulated Operation ID is revoked",
39
+
db_comment="Comments from admins in the case that a BC OBPS (Output-Based Pricing System) Regulated Operation ID is revoked",
40
40
)
41
41
status=models.CharField(
42
42
max_length=1000,
43
43
choices=Statuses.choices,
44
44
default=Statuses.ACTIVE,
45
-
db_comment="The status of an operation.",
45
+
db_comment="The status of the BC OBPS (Output-Based Pricing System) Regulated Operation ID (Active or Inactive). Inactive indicates the ID has been revoked.",
db_table_comment="Table to store BC OBPS Regulated Operation metadata. Once an operation has been approved as a BC OBPS Regulated Operations (IRC has determined the operation meets certain criteria and should be included in the program), then it is issued an ID."
53
+
db_table_comment="Table to store BC OBPS (Output-Based Pricing System) Regulated Operation metadata. Once an operation has been approved as a BC OBPS (Output-Based Pricing System) Regulated Operations (IRC has determined the operation meets certain criteria and should be included in the program), then it is issued an ID."
Copy file name to clipboardExpand all lines: bc_obps/registration/models/document_type.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ class DocumentType(BaseModel):
17
17
)
18
18
19
19
classMeta:
20
-
db_table_comment="Table that contains types of documents."
20
+
db_table_comment="Lookup table containing valid document types that can be attached to operations (e.g. boundary map, process flow diagram, new entrant application, opt in signed statutory declaration). Documents are classified by type to allow the system to retrieve specific document kinds."
Copy file name to clipboardExpand all lines: bc_obps/registration/models/event/transfer_event.py
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -17,42 +17,43 @@ class Statuses(models.TextChoices):
17
17
max_length=100,
18
18
choices=Statuses.choices,
19
19
default=Statuses.TO_BE_TRANSFERRED,
20
+
db_comment="The status of the transfer event (e.g. To be transferred, Transferred, Complete)",
20
21
)
21
22
from_operator=models.ForeignKey(
22
23
Operator,
23
24
on_delete=models.PROTECT,
24
25
related_name="transfer_events_from",
25
-
db_comment="The operator who is transferring the operation or facility.",
26
+
db_comment="The operator transferring the operation or facility to another operator. Foreign key to erc.operator",
26
27
)
27
28
to_operator=models.ForeignKey(
28
29
Operator,
29
30
on_delete=models.PROTECT,
30
31
related_name="transfer_events_to",
31
-
db_comment="The operator who is receiving the operation or facility.",
32
+
db_comment="The operator receiving the operation or facility. Foreign key to erc.operator",
32
33
)
33
34
from_operation=models.ForeignKey(
34
35
Operation,
35
36
on_delete=models.PROTECT,
36
37
null=True,
37
38
blank=True,
38
39
related_name="transfer_events_from",
39
-
db_comment="The operation that facilities are being transferred from.",
40
+
db_comment="The operation that facilities are being transferred away from (null if the entire operation is being transferred). Foreign key to erc.operation",
40
41
)
41
42
to_operation=models.ForeignKey(
42
43
Operation,
43
44
on_delete=models.PROTECT,
44
45
null=True,
45
46
blank=True,
46
47
related_name="transfer_events_to",
47
-
db_comment="The operation that facilities are being transferred to.",
48
+
db_comment="The operation that facilities are being transferred into (null if no target operation yet exists). Foreign key to erc.operation",
db_table_comment="Transfer events for operations and/or facilities."
56
+
db_table_comment="Records transfer events where ownership of operations or facilities moves from one operator to another. The from_operator and to_operator fields identify the parties involved. The facilities M2M field (inherited from EventBaseModel) lists which facilities are being transferred."
Copy file name to clipboardExpand all lines: bc_obps/registration/models/facility.py
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -24,39 +24,43 @@ class Types(models.TextChoices):
24
24
operation=models.ForeignKey(
25
25
Operation,
26
26
on_delete=models.PROTECT,
27
-
db_comment="The operation who currently owns the facility (see the FacilityDesignatedOperationTimeline for past and upcoming ownership)",
27
+
db_comment="The operation that currently owns this facility (historical ownership is tracked in erc.facility_designated_operation_timeline). Foreign key to erc.operation",
28
28
related_name="facilities",
29
29
)
30
30
name=models.CharField(
31
31
max_length=1000,
32
-
db_comment="The name of the facility when the operation owned it",
32
+
db_comment="The current name of the facility",
33
33
unique=True,
34
34
)
35
35
is_current_year=models.BooleanField(
36
-
blank=True, null=True, db_comment="The facility's starting date is within the current year or preceeding year"
36
+
blank=True, null=True, db_comment="The facility's starting date is within the current year or preceding year"
37
37
)
38
38
starting_date=models.DateTimeField(
39
39
blank=True, null=True, db_comment="The date of the facility starting operations"
40
40
)
41
-
type=models.CharField(max_length=100, choices=Types.choices, db_comment="The type of the facility")
41
+
type=models.CharField(
42
+
max_length=100,
43
+
choices=Types.choices,
44
+
db_comment="The type of the facility. Valid values: Single Facility, Large Facility, Medium Facility, Small Aggregate, Electricity Import",
45
+
)
42
46
address=models.ForeignKey(
43
47
Address,
44
48
on_delete=models.PROTECT,
45
-
db_comment="The address of the facility",
49
+
db_comment="The address of the facility. Foreign key to erc.address",
46
50
blank=True,
47
51
null=True,
48
52
related_name='%(class)s_address',
49
53
)
50
54
swrs_facility_id=models.IntegerField(
51
-
db_comment="A facility's SWRS facility ID.",
55
+
db_comment="A facility's SWRS (Single Window Reporting System) facility ID. Only populated for facilities imported from the SWRS dataset.",
@@ -84,7 +88,7 @@ class Types(models.TextChoices):
84
88
)
85
89
86
90
classMeta(TimeStampedModel.Meta):
87
-
db_table_comment="Contains data on facilities that emit carbon emissions and must report them to Clean Growth. A Linear Facilities Operation is made up of several different facilities whereas a Single Facility Operation has only one facility. In the case of a single facility operation, much of the data in this table will overlap with the parent record in the operation table."
91
+
db_table_comment="Contains data on facilities that emit carbon emissions and must report them to Clean Growth. A facility is a distinct location or unit within an industrial operation. A Linear Facilities Operation (LFO) is made up of several different facilities whereas a Single Facility Operation (SFO) has only one facility. In the case of an SFO, much of the data in this table will overlap with the parent record in the operation table."
0 commit comments