ixg_platform/apps/qc/migrations/0001_initial.py

35 lines
1.4 KiB
Python

# Generated by Django 5.2.12 on 2026-07-29 12:02
import django.db.models.deletion
import uuid
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('batches', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='QCResult',
fields=[
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
('ffa_percentage', models.DecimalField(decimal_places=2, max_digits=5)),
('moisture_percentage', models.DecimalField(decimal_places=2, max_digits=5)),
('peroxide_value', models.DecimalField(decimal_places=2, max_digits=5)),
('visual_grade', models.CharField(choices=[('A', 'A'), ('B', 'B'), ('C', 'C'), ('Fail', 'Fail')], max_length=5)),
('overall_pass', models.BooleanField()),
('tested_by', models.CharField(blank=True, max_length=255)),
('tested_at', models.DateTimeField(auto_now_add=True)),
('lab_reference', models.CharField(blank=True, max_length=255)),
('batch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='qc_results', to='batches.processingbatch')),
],
options={
'db_table': 'qc_results',
},
),
]