shared_accounts, accounts: ikkita user model qoshildi

This commit is contained in:
behruz-dev
2025-12-07 14:54:54 +05:00
parent 30c3b4df2e
commit 3c79a4c83c
31 changed files with 234 additions and 128 deletions

View File

@@ -1,4 +1,4 @@
# Generated by Django 5.2 on 2025-12-05 11:43
# Generated by Django 5.2 on 2025-12-07 09:47
import django.contrib.auth.models
import django.contrib.auth.validators
@@ -12,7 +12,6 @@ class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
@@ -33,9 +32,7 @@ class Migration(migrations.Migration):
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('profile_image', models.ImageField(blank=True, null=True, upload_to='user/profile_images/')),
('phone_number', models.CharField(blank=True, max_length=15, null=True, validators=[django.core.validators.RegexValidator(message='The phone_number is invalid. The format should be like this: 998XXXXXXXXX', regex='^998\\d{9}$')])),
('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.group', verbose_name='groups')),
('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.permission', verbose_name='user permissions')),
('phone_number', models.CharField(blank=True, max_length=15, null=True, validators=[django.core.validators.RegexValidator(message='The phone_number is invalid. The format should be like this: +998XXXXXXXXX', regex='^\\+998\\d{9}$')])),
],
options={
'verbose_name': 'user',

View File

@@ -1,20 +0,0 @@
# Generated by Django 5.2 on 2025-12-05 12:07
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
('customers', '0002_remove_client_on_trial_remove_client_paid_until'),
]
operations = [
migrations.AddField(
model_name='user',
name='client',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='users', to='customers.client'),
),
]