# Generated by Django 4.2.11 on 2024-05-07 11:06 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Contact', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('client_id', models.CharField(max_length=30, null=True)), ('name', models.CharField(max_length=40, null=True)), ('designation', models.CharField(max_length=50, null=True)), ('department', models.CharField(max_length=50, null=True)), ('phone_no', models.CharField(max_length=50, null=True)), ('email', models.EmailField(max_length=254, null=True)), ('location', models.CharField(max_length=102, null=True)), ], ), migrations.CreateModel( name='Locations', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('location', models.CharField(max_length=50, null=True)), ], ), migrations.CreateModel( name='skyonnAdmin', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('first_name', models.CharField(max_length=50)), ('last_name', models.CharField(max_length=50)), ('phone', models.CharField(max_length=15, unique=True)), ('phone_number_2', models.CharField(blank=True, max_length=15, null=True)), ('company_email', models.EmailField(max_length=254, null=True)), ('personal_email', models.EmailField(max_length=254, null=True)), ('address', models.TextField(null=True)), ('work_location', models.CharField(max_length=100, null=True)), ('picture', models.ImageField(null=True, upload_to='profile_pics/')), ('role', models.CharField(max_length=20)), ('admin_id', models.CharField(max_length=10, unique=True)), ('is_active', models.BooleanField(default=True)), ('is_staff', models.BooleanField(default=False)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='SubcompanyDetails', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('parent_company', models.CharField(max_length=100)), ('sub_company', models.CharField(max_length=100, unique=True)), ('location', models.CharField(max_length=100)), ('gst_no', models.CharField(max_length=50)), ('address', models.CharField(max_length=200)), ('client_id', models.CharField(max_length=20, null=True)), ('contacts', models.ManyToManyField(related_name='subcompany_contacts', to='skyonnadmin.contact')), ], ), migrations.CreateModel( name='ClientDetails', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('parent_company', models.CharField(max_length=100)), ('location', models.CharField(max_length=100)), ('department', models.CharField(max_length=100)), ('gst_no', models.CharField(max_length=50)), ('address', models.CharField(max_length=200)), ('client_id', models.CharField(max_length=20, null=True)), ('contacts', models.ManyToManyField(related_name='contacts', to='skyonnadmin.contact')), ], ), ]