Skip to content

Commit

Permalink
Added Member Info table
Browse files Browse the repository at this point in the history
  • Loading branch information
schnei-guy92 committed Aug 10, 2024
1 parent 017dafa commit 06198a2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions chorus_thing/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,23 @@ class MusicLibrary(BaseTable):
track09_link: Mapped[str | None]
number_copies: Mapped[str]
license_info: Mapped[str | None]
class Member(BaseTable):
"""Members."""

__tablename__ = "Member Info"

first_name: Mapped[str]
middle_name: Mapped[str | None]
last_name: Mapped[str]
section: Mapped[str | None]
member_since: Mapped[str | None]
phone_number: Mapped[str | None]
email: Mapped[str | None]
address: Mapped[str | None]
emergency_contact: Mapped[str | None]
emergency_contact_phone_number: Mapped[str | None]

def __repr__(self) -> str:
"""String representation of table."""
return f"""Member(first_name={self.first_name}, last_name={self.last_name}, section={self.section},
member_since={self.member_since}, phone_number={self.section}, email={self.email})"""

0 comments on commit 06198a2

Please sign in to comment.