40 lines
1.9 KiB
Python
40 lines
1.9 KiB
Python
|
|
# Generated by Django 5.2.16 on 2026-08-16 18:16
|
||
|
|
|
||
|
|
import django.db.models.deletion
|
||
|
|
import uuid
|
||
|
|
from django.db import migrations, models
|
||
|
|
|
||
|
|
|
||
|
|
class Migration(migrations.Migration):
|
||
|
|
|
||
|
|
dependencies = [
|
||
|
|
('model_studio', '0001_initial'),
|
||
|
|
]
|
||
|
|
|
||
|
|
operations = [
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='DatasetCurationProposal',
|
||
|
|
fields=[
|
||
|
|
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
||
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
||
|
|
('title', models.CharField(max_length=255)),
|
||
|
|
('hypothesis', models.TextField()),
|
||
|
|
('evidence', models.JSONField(default=dict)),
|
||
|
|
('proposed_operations', models.JSONField(default=list)),
|
||
|
|
('expected_capability_effect', models.TextField(blank=True)),
|
||
|
|
('expected_risks', models.JSONField(blank=True, default=list)),
|
||
|
|
('validation_plan', models.JSONField(default=dict)),
|
||
|
|
('contamination_plan', models.JSONField(default=dict)),
|
||
|
|
('status', models.CharField(choices=[('PROPOSED', 'Proposed'), ('VALIDATED', 'Validated'), ('REJECTED', 'Rejected'), ('MATERIALIZED', 'Materialized')], default='PROPOSED', max_length=32)),
|
||
|
|
('created_by_agent', models.CharField(default='DATASET_CURATOR', max_length=120)),
|
||
|
|
('model_evidence', models.JSONField(blank=True, default=dict)),
|
||
|
|
('materialized_version', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='materialized_by_proposals', to='model_studio.datasetversion')),
|
||
|
|
('source_versions', models.ManyToManyField(related_name='curation_proposals', to='model_studio.datasetversion')),
|
||
|
|
],
|
||
|
|
options={
|
||
|
|
'abstract': False,
|
||
|
|
},
|
||
|
|
),
|
||
|
|
]
|