Açıklama Yok

0015_ingredient.py 1.3KB

123456789101112131415161718192021222324252627282930313233
  1. # Generated by Django 3.2.13 on 2022-05-19 14:30
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('pos', '0014_order_note'),
  7. ]
  8. operations = [
  9. migrations.CreateModel(
  10. name='Ingredient',
  11. fields=[
  12. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  13. ('created_at', models.DateTimeField(auto_now_add=True)),
  14. ('updated_at', models.DateTimeField(auto_now=True)),
  15. ('inProcess', models.CharField(blank=True, max_length=100, null=True)),
  16. ('status', models.CharField(choices=[('process', 'Process'), ('fn', 'Finished')], default='process', max_length=100)),
  17. ('name', models.CharField(max_length=200)),
  18. ('qty', models.DecimalField(decimal_places=2, max_digits=5)),
  19. ('unit', models.CharField(max_length=10)),
  20. ('comment', models.TextField(blank=True, null=True)),
  21. ('menu', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='pos.menuitem')),
  22. ],
  23. options={
  24. 'abstract': False,
  25. },
  26. ),
  27. ]