# Generated by Django 5.1.4 on 2025-01-09 09:26 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Contractor', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('contract_number', models.CharField(max_length=100)), ('address', models.TextField()), ], ), migrations.CreateModel( name='Employee', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('full_name', models.CharField(max_length=255)), ('passport_series', models.CharField(max_length=10)), ('passport_number', models.CharField(max_length=10)), ('birth_date', models.DateField()), ('position', models.CharField(max_length=255)), ('department', models.CharField(max_length=255)), ('login', models.CharField(max_length=100, unique=True)), ('password', models.CharField(max_length=100)), ('role', models.CharField(max_length=100)), ('work_phone', models.CharField(max_length=20)), ('personal_phone', models.CharField(blank=True, max_length=20, null=True)), ('email', models.EmailField(max_length=254)), ], ), migrations.CreateModel( name='Product', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('manufacturer', models.CharField(max_length=255)), ('manufacturer_country', models.CharField(max_length=255)), ('manufacturer_code', models.CharField(max_length=50)), ('dimensions', models.CharField(blank=True, max_length=255, null=True)), ('unit', models.CharField(max_length=50)), ('shelf_life', models.IntegerField()), ('barcode', models.CharField(max_length=50)), ('additional_info', models.TextField(blank=True, null=True)), ], ), migrations.CreateModel( name='ContractorContact', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('full_name', models.CharField(max_length=255)), ('phone', models.CharField(max_length=20)), ('email', models.EmailField(max_length=254)), ('contractor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='contacts', to='hq.contractor')), ], ), ]