mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-07-07 12:16:30 +00:00
migration(billing): Add expires_at field and is_expired property to Topup model for expiration management 🔧
This commit is contained in:
@ -0,0 +1,26 @@
|
||||
# Generated by Django 5.2 on 2025-07-04 06:10
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("billing", "0007_topup_paid_at"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name="topup",
|
||||
options={"ordering": ["-created_at"]},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="topup",
|
||||
name="expired",
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="topup",
|
||||
name="expires_at",
|
||||
field=models.DateTimeField(blank=True, null=True),
|
||||
),
|
||||
]
|
16
billing/migrations/0009_remove_topup_expired.py
Normal file
16
billing/migrations/0009_remove_topup_expired.py
Normal file
@ -0,0 +1,16 @@
|
||||
# Generated by Django 5.2 on 2025-07-04 11:13
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("billing", "0008_alter_topup_options_topup_expired_topup_expires_at"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name="topup",
|
||||
name="expired",
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user