<reponame>andreped/annotationweb
# -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2019-05-15 09:48
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('annotationweb', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='ControlPoint',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('x', models.FloatField()),
                ('y', models.FloatField()),
                ('index', models.PositiveIntegerField()),
                ('phase', models.PositiveIntegerField(choices=[(0, 'End Diastole'), (1, 'End Systole')])),
                ('object', models.PositiveIntegerField(choices=[(0, 'Endocardium'), (1, 'Epicardium'), (2, 'Left atrium')])),
                ('uncertain', models.BooleanField()),
            ],
        ),
        migrations.CreateModel(
            name='Segmentation',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('frame_ED', models.IntegerField()),
                ('frame_ES', models.IntegerField()),
                ('motion_mode_line', models.PositiveIntegerField()),
                ('image', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='annotationweb.KeyFrameAnnotation')),
            ],
        ),
        migrations.AddField(
            model_name='controlpoint',
            name='segmentation',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cardiac.Segmentation'),
        ),
    ]

# -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2019-05-15 09:48
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('annotationweb', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='ControlPoint',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('x', models.FloatField()),
                ('y', models.FloatField()),
                ('index', models.PositiveIntegerField()),
                ('phase', models.PositiveIntegerField(choices=[(0, 'End Diastole'), (1, 'End Systole')])),
                ('object', models.PositiveIntegerField(choices=[(0, 'Endocardium'), (1, 'Epicardium'), (2, 'Left atrium')])),
                ('uncertain', models.BooleanField()),
            ],
        ),
        migrations.CreateModel(
            name='Segmentation',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('frame_ED', models.IntegerField()),
                ('frame_ES', models.IntegerField()),
                ('motion_mode_line', models.PositiveIntegerField()),
                ('image', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='annotationweb.KeyFrameAnnotation')),
            ],
        ),
        migrations.AddField(
            model_name='controlpoint',
            name='segmentation',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cardiac.Segmentation'),
        ),
    ]
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2019-05-15 09:48