diora-web/projects/migrations/0002_radar.py
mrwnslz c8fd139b44
Some checks failed
Build and push Docker image / build (push) Successful in 1m11s
Test / test (push) Successful in 10m32s
Test / e2e (push) Failing after 1m31s
Projekte: Radar – wöchentlich neue Papers (PubMed, arXiv, bioRxiv, medRxiv), von Claude im Batch sortiert, Entscheidungen verschlüsselt, → Quellen; Preset Neuropolitik aus F:\neuropolitik\tools; sw v145
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 20:43:43 +02:00

46 lines
2 KiB
Python

# Generated by Django 6.1 on 2026-10-19 18:32
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='projectitem',
name='kind',
field=models.CharField(choices=[('book', 'Buch'), ('episode', 'Folge'), ('article', 'Artikel'), ('paper', 'Paper'), ('note', 'Notiz'), ('radar', 'Radar')], max_length=10),
),
migrations.CreateModel(
name='Radar',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('enabled', models.BooleanField(default=True)),
('config', models.JSONField(default=dict)),
('seen', models.JSONField(default=list)),
('pending', models.JSONField(blank=True, null=True)),
('last_run_at', models.DateTimeField(blank=True, null=True)),
('last_error', models.TextField(blank=True)),
('project', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='radar', to='projects.project')),
],
),
migrations.CreateModel(
name='RadarDigest',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('generated', models.DateField()),
('batch_id', models.CharField(blank=True, max_length=100)),
('bundle', models.JSONField()),
('created_at', models.DateTimeField(auto_now_add=True)),
('radar', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='digests', to='projects.radar')),
],
options={
'ordering': ['-generated', '-created_at'],
},
),
]