make payee_id nullable
This commit is contained in:
parent
9a5edac1ad
commit
183947f0e8
2 changed files with 19 additions and 1 deletions
18
apps/wallet/migrations/0009_alter_transaction_payee_id.py
Normal file
18
apps/wallet/migrations/0009_alter_transaction_payee_id.py
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 5.1.7 on 2025-09-02 09:14
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('wallet', '0008_alter_transaction_options_and_more'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='transaction',
|
||||||
|
name='payee_id',
|
||||||
|
field=models.UUIDField(null=True),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
@ -89,7 +89,7 @@ class Transaction(BaseModel):
|
||||||
delay = models.PositiveIntegerField(default=0, blank=True) # number of days for delayed payments
|
delay = models.PositiveIntegerField(default=0, blank=True) # number of days for delayed payments
|
||||||
payer_id = models.UUIDField(blank=True, null=True)
|
payer_id = models.UUIDField(blank=True, null=True)
|
||||||
payer_type = models.IntegerField(choices=TypeChoices.choices, blank=True, null=True)
|
payer_type = models.IntegerField(choices=TypeChoices.choices, blank=True, null=True)
|
||||||
payee_id = models.UUIDField()
|
payee_id = models.UUIDField(null=True)
|
||||||
payee_type = models.IntegerField(choices=TypeChoices.choices, blank=True, null=True)
|
payee_type = models.IntegerField(choices=TypeChoices.choices, blank=True, null=True)
|
||||||
state = models.IntegerField(choices=StateChoices.choices, default=StateChoices.CREATED)
|
state = models.IntegerField(choices=StateChoices.choices, default=StateChoices.CREATED)
|
||||||
application = models.ForeignKey(oauth2_settings.APPLICATION_MODEL, on_delete=models.PROTECT,
|
application = models.ForeignKey(oauth2_settings.APPLICATION_MODEL, on_delete=models.PROTECT,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue