Нема описа

0021_vendororder.py 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Generated by Django 3.2.6 on 2021-08-09 07:25
  2. from django.conf import settings
  3. from django.db import migrations, models
  4. import django.db.models.deletion
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  8. ('fruit', '0020_purchase_vendor'),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name='VendorOrder',
  13. fields=[
  14. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  15. ('created_at', models.DateTimeField(auto_now_add=True, null=True)),
  16. ('updated_at', models.DateTimeField(auto_now=True)),
  17. ('price', models.DecimalField(blank=True, decimal_places=2, max_digits=7, null=True)),
  18. ('n_unit', models.DecimalField(blank=True, decimal_places=2, max_digits=7, null=True)),
  19. ('unit_name', models.CharField(max_length=200, null=True)),
  20. ('sub_total', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
  21. ('vat', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
  22. ('total', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True)),
  23. ('created_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='vendororder_created', to=settings.AUTH_USER_MODEL)),
  24. ('modified_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='vendororder_modified', to=settings.AUTH_USER_MODEL)),
  25. ('product', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='fruit.product')),
  26. ('store', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='fruit.store')),
  27. ('vendor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='fruit.vendor')),
  28. ],
  29. options={
  30. 'abstract': False,
  31. },
  32. ),
  33. ]