removed LegislatorBillScore
This commit is contained in:
@@ -12,7 +12,6 @@ from sqlalchemy.orm import Mapped, mapped_column, relationship
|
||||
from pipelines.orm.data_science_dev.base import DataScienceDevTableBase
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from pipelines.orm.data_science_dev.congress.legislator import LegislatorBillScore
|
||||
from pipelines.orm.data_science_dev.congress.vote import Vote
|
||||
|
||||
|
||||
@@ -64,11 +63,6 @@ class Bill(DataScienceDevTableBase):
|
||||
back_populates="bill",
|
||||
cascade="all, delete-orphan",
|
||||
)
|
||||
legislator_bill_scores: Mapped[list[LegislatorBillScore]] = relationship(
|
||||
"LegislatorBillScore",
|
||||
back_populates="bill",
|
||||
cascade="all, delete-orphan",
|
||||
)
|
||||
|
||||
|
||||
class BillText(DataScienceDevTableBase):
|
||||
@@ -93,6 +87,7 @@ class BillText(DataScienceDevTableBase):
|
||||
|
||||
bill: Mapped[Bill] = relationship("Bill", back_populates="bill_texts")
|
||||
|
||||
# suport multipu summary prer bill
|
||||
|
||||
class BillTopic(DataScienceDevTableBase):
|
||||
"""One bill stance on one topic used to score roll-call votes."""
|
||||
@@ -120,8 +115,3 @@ class BillTopic(DataScienceDevTableBase):
|
||||
)
|
||||
|
||||
bill: Mapped[Bill] = relationship("Bill", back_populates="topics")
|
||||
legislator_bill_scores: Mapped[list[LegislatorBillScore]] = relationship(
|
||||
"LegislatorBillScore",
|
||||
back_populates="bill_topic",
|
||||
cascade="all, delete-orphan",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user