-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
196ef69
commit 495eb87
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from sqlalchemy import String, ForeignKey | ||
from sqlalchemy.orm import relationship, Mapped, mapped_column | ||
|
||
from pycroft.model.base import IntegerIdModel | ||
|
||
|
||
class RepaymentRequest(IntegerIdModel): | ||
"""A request for transferring back excess membership contributions""" | ||
|
||
id: Mapped[int] = mapped_column(primary_key=True) | ||
user_id: Mapped[int] = mapped_column( | ||
ForeignKey("user.id", ondelete="CASCADE", onupdate="CASCADE") | ||
) | ||
beneficiary: Mapped[str] = mapped_column(nullable=False) | ||
iban: Mapped[str] = mapped_column(String, nullable=False) | ||
amount: Mapped[Decimal] = mapped_column(Decimal, nullable=False) | ||
Check failure on line 16 in pycroft/model/repayment.py GitHub Actions / python-lintRuff (F821)
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters