feat(migration): Add timestamp to UserRegistration

Introduces a timestamp field to record creation time in the
UserRegistration model, improving traceability.

Updates status field with expanded choice set for status handling,
diversifying registration status representations.
This commit is contained in:
Kumi 2024-11-16 21:22:34 +01:00
parent da40dbef85
commit eb0a58170c
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -0,0 +1,35 @@
# Generated by Django 5.1.3 on 2024-11-16 20:22
import django.utils.timezone
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("registration", "0002_alter_userregistration_email_and_more"),
]
operations = [
migrations.AddField(
model_name="userregistration",
name="timestamp",
field=models.DateTimeField(
auto_now_add=True, default=django.utils.timezone.now
),
preserve_default=False,
),
migrations.AlterField(
model_name="userregistration",
name="status",
field=models.IntegerField(
choices=[
(0, "Started"),
(1, "Requested"),
(2, "Approved"),
(3, "Denied"),
],
default=0,
),
),
]