36 lines
1.3 KiB
Python
36 lines
1.3 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='ESGFieldReport',
|
|
fields=[
|
|
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
|
('women_employed', models.IntegerField(default=0)),
|
|
('total_workers', models.IntegerField(default=0)),
|
|
('fair_wage_paid', models.BooleanField(default=False)),
|
|
('safety_equipment_used', models.BooleanField(default=False)),
|
|
('community_notes', models.TextField(blank=True)),
|
|
('reported_by', models.CharField(blank=True, max_length=255)),
|
|
('report_date', models.DateField(blank=True, null=True)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('batch', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='esg_reports', to='batches.processingbatch')),
|
|
],
|
|
options={
|
|
'verbose_name': 'ESG Field Report',
|
|
'db_table': 'esg_field_reports',
|
|
},
|
|
),
|
|
]
|