coins default 0
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0.2 on 2024-03-05 08:10
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("manage_referrals", "0005_alter_goodtimecoins_coins"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="referralrecordreward",
|
||||
name="coins",
|
||||
field=models.PositiveBigIntegerField(default=1),
|
||||
),
|
||||
]
|
||||
18
manage_wallets/migrations/0004_alter_wallet_coins.py
Normal file
18
manage_wallets/migrations/0004_alter_wallet_coins.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0.2 on 2024-03-05 08:10
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("manage_wallets", "0003_remove_transaction_principal_type_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="wallet",
|
||||
name="coins",
|
||||
field=models.BigIntegerField(default=0),
|
||||
),
|
||||
]
|
||||
@@ -12,7 +12,7 @@ class Wallet(BaseModel):
|
||||
balance = models.DecimalField(max_digits=14, decimal_places=2, default=0.00)
|
||||
deposit = models.DecimalField(max_digits=14, decimal_places=2, default=0.00)
|
||||
earnings = models.DecimalField(max_digits=14, decimal_places=2, default=0.00)
|
||||
coins = models.BigIntegerField(blank=True, null=True)
|
||||
coins = models.BigIntegerField(default=0)
|
||||
withdrawal_balance = models.DecimalField(
|
||||
max_digits=14, decimal_places=2, default=0.00
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user