40 lines
1.8 KiB
Python
40 lines
1.8 KiB
Python
|
|
# Generated by Django 5.1.5 on 2025-01-26 08:47
|
||
|
|
|
||
|
|
import django.db.models.deletion
|
||
|
|
from django.db import migrations, models
|
||
|
|
|
||
|
|
|
||
|
|
class Migration(migrations.Migration):
|
||
|
|
|
||
|
|
dependencies = [
|
||
|
|
('orthanc', '0001_initial'),
|
||
|
|
]
|
||
|
|
|
||
|
|
operations = [
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='Series',
|
||
|
|
fields=[
|
||
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
|
('orthanc_id', models.CharField(max_length=255, unique=True)),
|
||
|
|
('parent_study', models.CharField(max_length=255)),
|
||
|
|
('main_dicom_tags', models.JSONField(blank=True, null=True)),
|
||
|
|
('status', models.CharField(blank=True, max_length=50, null=True)),
|
||
|
|
('is_stable', models.BooleanField(default=False)),
|
||
|
|
('last_update', models.CharField(blank=True, max_length=50, null=True)),
|
||
|
|
('patient', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='series', to='orthanc.patient')),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='Instance',
|
||
|
|
fields=[
|
||
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
|
('orthanc_id', models.CharField(max_length=255, unique=True)),
|
||
|
|
('file_size', models.IntegerField(blank=True, null=True)),
|
||
|
|
('file_uuid', models.CharField(blank=True, max_length=255, null=True)),
|
||
|
|
('main_dicom_tags', models.JSONField(blank=True, null=True)),
|
||
|
|
('index_in_series', models.IntegerField(blank=True, null=True)),
|
||
|
|
('parent_series', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='instances', to='orthanc.series')),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
]
|