create bank account for organization

This commit is contained in:
2025-08-06 16:08:07 +03:30
parent e816ac000a
commit 1f8cca7973
11 changed files with 170 additions and 2 deletions

View File

@@ -161,8 +161,20 @@ class BankAccountInformation(BaseModel):
user = models.ForeignKey(
User,
on_delete=models.CASCADE,
related_name="bank_information"
related_name="bank_information",
null=True
)
organization = models.ForeignKey(
Organization,
on_delete=models.CASCADE,
related_name='bank_information',
null=True
)
type_choices = (
('ORG', 'organization'),
('USR', 'user'),
)
account_type = models.CharField(max_length=10, default='USR')
name = models.CharField(max_length=150)
card = models.CharField(max_length=25, unique=True)
account = models.CharField(max_length=25, unique=True)