38 lines
1.5 KiB
Python
38 lines
1.5 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='CAPARecord',
|
|
fields=[
|
|
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
|
('issue_description', models.TextField()),
|
|
('root_cause', models.TextField(blank=True)),
|
|
('corrective_action', models.TextField(blank=True)),
|
|
('preventive_action', models.TextField(blank=True)),
|
|
('status', models.CharField(choices=[('open', 'Open'), ('in_progress', 'In Progress'), ('closed', 'Closed')], default='open', max_length=20)),
|
|
('assigned_to', models.CharField(blank=True, max_length=255)),
|
|
('due_date', models.DateField(blank=True, null=True)),
|
|
('closed_at', models.DateTimeField(blank=True, null=True)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('batch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='capa_records', to='batches.processingbatch')),
|
|
],
|
|
options={
|
|
'verbose_name': 'CAPA Record',
|
|
'verbose_name_plural': 'CAPA Records',
|
|
'db_table': 'capa_records',
|
|
},
|
|
),
|
|
]
|