mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-08-11 20:07:24 +00:00
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m42s
56 lines
1.8 KiB
Python
56 lines
1.8 KiB
Python
# Generated by Django 5.2 on 2025-07-25 08:34
|
|
|
|
import django.db.models.deletion
|
|
import django.utils.timezone
|
|
import uuid
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("billing", "0013_payment_expiry_notification_sent"),
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="WalletTransaction",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.UUIDField(
|
|
default=uuid.uuid4,
|
|
editable=False,
|
|
primary_key=True,
|
|
serialize=False,
|
|
),
|
|
),
|
|
("amount", models.FloatField()),
|
|
(
|
|
"transaction_type",
|
|
models.CharField(
|
|
choices=[("TOPUP", "Topup"), ("DEBIT", "Debit")], max_length=10
|
|
),
|
|
),
|
|
("description", models.TextField(blank=True, null=True)),
|
|
(
|
|
"reference_id",
|
|
models.CharField(blank=True, max_length=255, null=True),
|
|
),
|
|
("created_at", models.DateTimeField(default=django.utils.timezone.now)),
|
|
(
|
|
"user",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="wallet_transactions",
|
|
to=settings.AUTH_USER_MODEL,
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"ordering": ["-created_at"],
|
|
},
|
|
),
|
|
]
|