mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-07-20 16:47:22 +00:00
refactor(models): add db_index to mobile and id_card fields in User and TemporaryUser models 🔨
This commit is contained in:
@ -0,0 +1,40 @@
|
||||
# Generated by Django 5.2 on 2025-07-15 20:48
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("api", "0016_user_is_admin"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="temporaryuser",
|
||||
name="t_id_card",
|
||||
field=models.CharField(
|
||||
blank=True, db_index=True, max_length=255, null=True, unique=True
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="temporaryuser",
|
||||
name="t_mobile",
|
||||
field=models.CharField(
|
||||
blank=True, db_index=True, max_length=255, null=True, unique=True
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="user",
|
||||
name="id_card",
|
||||
field=models.CharField(
|
||||
blank=True, db_index=True, max_length=255, null=True, unique=True
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="user",
|
||||
name="mobile",
|
||||
field=models.CharField(
|
||||
blank=True, db_index=True, max_length=255, null=True, unique=True
|
||||
),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user