payment in transaction models
This commit is contained in:
parent
4fcbbae4a8
commit
6ee333cd06
3 changed files with 78 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 5.0.6 on 2024-08-10 16:52
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('gooyal_oauth2', '0003_application_balance'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='application',
|
||||
name='balance',
|
||||
field=models.PositiveBigIntegerField(default=0, verbose_name='balance'),
|
||||
),
|
||||
]
|
||||
18
apps/users/migrations/0006_alter_user_balance.py
Normal file
18
apps/users/migrations/0006_alter_user_balance.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 5.0.6 on 2024-08-10 16:52
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('users', '0005_rename_last_update_user_updated_at'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='user',
|
||||
name='balance',
|
||||
field=models.PositiveBigIntegerField(default=0, verbose_name='balance'),
|
||||
),
|
||||
]
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
# Generated by Django 5.0.6 on 2024-08-10 16:52
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wallet', '0003_remove_transaction_detail_id_transaction_detail_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='transaction',
|
||||
name='payee',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='transaction',
|
||||
name='payer',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='transaction',
|
||||
name='payee_id',
|
||||
field=models.UUIDField(default=None),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='transaction',
|
||||
name='payee_type',
|
||||
field=models.IntegerField(blank=True, choices=[(1, 'user'), (2, 'application')], null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='transaction',
|
||||
name='payer_id',
|
||||
field=models.UUIDField(blank=True, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='transaction',
|
||||
name='payer_type',
|
||||
field=models.IntegerField(blank=True, choices=[(1, 'user'), (2, 'application')], null=True),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Reference in a new issue