Commit f74725be authored by Jakob Moser's avatar Jakob Moser
Browse files

Add owner_uuid to Card

parent 94f81e99
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
from sqlalchemy.orm import Mapped, mapped_column
from sqlalchemy.schema import ForeignKey

from poolpay.model.Retrievable import Retrievable

@@ -11,6 +12,7 @@ class Card(Retrievable):
    __tablename__ = "card"

    id: Mapped[int] = mapped_column(primary_key=True)
    owner_uuid = mapped_column(ForeignKey("person.uuid"))

    @property
    def primary_key(self) -> int: