Skip to content

Commit

Permalink
Didn't end up using these classes for "new" v4 records
Browse files Browse the repository at this point in the history
  • Loading branch information
trevormunoz committed May 3, 2021
1 parent aa8b341 commit 98548d3
Showing 1 changed file with 0 additions and 45 deletions.
45 changes: 0 additions & 45 deletions lakeland_db_migrate_v4/destinations.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,51 +118,6 @@ def __post_init_post_parse__(self, v3_created_date: str) -> None:
object.__setattr__(self, "creation_year", dtobj.strftime("%Y"))


@dataclass
class ItemLegacyInfoRecord(V4BaseRecord):
"""A representation of legacy ids about Entities in the destination data model."""

linked_item: ItemRecord
legacy_idno_umd: str = ""
legacy_ldt_image_idno: str = ""
legacy_associated_filenames: list[str] = field(default_factory=list)


@dataclass
class ItemAdminRecord(V4BaseRecord):
"""A representation of AdminData about Entities in the destination data model."""

linked_item: ItemRecord
lakeland_book: bool = field(default=False)
lakeland_book_chapter: str = ""
lakeland_book_page: int = field(default_factory=int)
lakeland_video: bool = field(default=False)
remove: bool = field(default=False)


@dataclass
class LocationRecord(V4BaseRecord):
"""A representation of a Location in the destination data model."""

name: str
linked_entities: list[str]
address: str
latitude: float
longitude: float


@dataclass
class PersonAdminRecord(V4BaseRecord):
"""A representation of AdminData about Entities in the destination data model."""

name: str
linked_entities: list[str]
lchp_team_member: bool = field(default=False)
title: str = ""
affiliation: str = ""
email_address: str = ""


@dataclass
class EntityRelationshipRecord(MigratedRecord):
"""A representation of a pairwise relationship between Entities in the destination data model."""
Expand Down

0 comments on commit 98548d3

Please sign in to comment.