improve registration flows
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 5s
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 5s
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
# Generated by Django 5.2 on 2026-08-03 17:40
|
||||
|
||||
import django.db.models.deletion
|
||||
import django.utils.timezone
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("api", "0018_user_agreement"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="user",
|
||||
name="id_card_photo",
|
||||
field=models.ImageField(
|
||||
blank=True,
|
||||
help_text="ID card / passport photo uploaded by the user for manual review.",
|
||||
null=True,
|
||||
upload_to="id_cards/",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="user",
|
||||
name="status",
|
||||
field=models.CharField(
|
||||
choices=[
|
||||
("pending", "Pending"),
|
||||
("verified", "Verified"),
|
||||
("id_required", "ID required"),
|
||||
("id_submitted", "ID submitted"),
|
||||
],
|
||||
db_index=True,
|
||||
default="pending",
|
||||
max_length=20,
|
||||
),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name="IdUploadToken",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.BigAutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("key", models.CharField(db_index=True, max_length=64, unique=True)),
|
||||
("created_at", models.DateTimeField(default=django.utils.timezone.now)),
|
||||
("expires_at", models.DateTimeField()),
|
||||
("used_at", models.DateTimeField(blank=True, null=True)),
|
||||
(
|
||||
"user",
|
||||
models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name="id_upload_tokens",
|
||||
to=settings.AUTH_USER_MODEL,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2 on 2026-08-03 18:00
|
||||
|
||||
import api.storages
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("api", "0019_user_id_card_photo_user_status_iduploadtoken"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="user",
|
||||
name="id_card_photo",
|
||||
field=models.ImageField(
|
||||
blank=True,
|
||||
help_text="ID card / passport photo uploaded by the user for manual review.",
|
||||
null=True,
|
||||
storage=api.storages.idcard_storage,
|
||||
upload_to="",
|
||||
),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.2 on 2026-08-03 18:24
|
||||
|
||||
import api.storages
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("api", "0020_alter_user_id_card_photo"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="user",
|
||||
name="id_card_photo",
|
||||
field=models.FileField(
|
||||
blank=True,
|
||||
help_text="ID card / passport (JPG, PNG or PDF) uploaded by the user for manual review.",
|
||||
null=True,
|
||||
storage=api.storages.idcard_storage,
|
||||
upload_to="",
|
||||
),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user