tarqatilgan mahsulotlar uchun api chiqarildi

This commit is contained in:
behruz-dev
2025-12-03 16:05:08 +05:00
parent 731abb6936
commit eaca6043a9
8 changed files with 142 additions and 2 deletions

View File

@@ -0,0 +1,32 @@
# Generated by Django 5.2 on 2025-12-03 10:56
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0005_payment'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='DistributedProduct',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
('date', models.DateField()),
('employee_name', models.CharField(max_length=200)),
('quantity', models.PositiveIntegerField()),
('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='distributed_products', to='orders.product')),
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='distributed_products', to=settings.AUTH_USER_MODEL)),
],
options={
'abstract': False,
},
),
]