setting up ORM
This commit is contained in:
@@ -2,15 +2,81 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from pipelines.orm.data_science_dev.congress import Bill, BillText, Legislator, Vote, VoteRecord
|
||||
from pipelines.orm.data_science_dev.congress import (
|
||||
Amendment,
|
||||
AmendmentAction,
|
||||
AmendmentActionRecordedVote,
|
||||
Bill,
|
||||
BillAction,
|
||||
BillActionRecordedVote,
|
||||
BillRelation,
|
||||
BillText,
|
||||
BillTopic,
|
||||
BillTopicPosition,
|
||||
ClassificationMethod,
|
||||
ConfidenceLevel,
|
||||
IngestRun,
|
||||
Legislator,
|
||||
LegislatorScore,
|
||||
MeasureFunction,
|
||||
MeasureSubtype,
|
||||
ScoreRun,
|
||||
SourceArtifact,
|
||||
SubjectType,
|
||||
TextResolutionMethod,
|
||||
TextTargetBasis,
|
||||
TextTargetType,
|
||||
Vote,
|
||||
VoteActionMatch,
|
||||
VoteActionScope,
|
||||
VoteClassification,
|
||||
VoteContextAudit,
|
||||
VoteEffect,
|
||||
VoteMeasureLink,
|
||||
VoteMeasureRole,
|
||||
VotePositionMeaning,
|
||||
VoteRelationship,
|
||||
VoteRecord,
|
||||
VoteTextTarget,
|
||||
)
|
||||
from pipelines.orm.data_science_dev.posts import partitions # noqa: F401 — registers partition classes in metadata
|
||||
from pipelines.orm.data_science_dev.posts.tables import Posts
|
||||
|
||||
__all__ = [
|
||||
"Amendment",
|
||||
"AmendmentAction",
|
||||
"AmendmentActionRecordedVote",
|
||||
"Bill",
|
||||
"BillAction",
|
||||
"BillActionRecordedVote",
|
||||
"BillRelation",
|
||||
"BillText",
|
||||
"BillTopic",
|
||||
"BillTopicPosition",
|
||||
"ClassificationMethod",
|
||||
"ConfidenceLevel",
|
||||
"IngestRun",
|
||||
"Legislator",
|
||||
"LegislatorScore",
|
||||
"MeasureFunction",
|
||||
"MeasureSubtype",
|
||||
"Posts",
|
||||
"ScoreRun",
|
||||
"SourceArtifact",
|
||||
"SubjectType",
|
||||
"TextResolutionMethod",
|
||||
"TextTargetBasis",
|
||||
"TextTargetType",
|
||||
"Vote",
|
||||
"VoteActionMatch",
|
||||
"VoteActionScope",
|
||||
"VoteClassification",
|
||||
"VoteContextAudit",
|
||||
"VoteEffect",
|
||||
"VoteMeasureLink",
|
||||
"VoteMeasureRole",
|
||||
"VotePositionMeaning",
|
||||
"VoteRelationship",
|
||||
"VoteRecord",
|
||||
"VoteTextTarget",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user