# Generated by Django 3.2.4 on 2021-06-18 19:29

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Bin',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('latitude', models.FloatField(default=0, verbose_name='latitude')),
                ('longitude', models.FloatField(default=0, verbose_name='longitude')),
                ('collection_frequency', models.IntegerField(default=0, verbose_name='collection frequency')),
                ('last_collection', models.DateTimeField(auto_now_add=True, verbose_name='last collection time')),
            ],
        ),
        migrations.CreateModel(
            name='Operation',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=20, verbose_name='Operation name')),
            ],
        ),
        migrations.CreateModel(
            name='Execution',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Op_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='operation', to='bin.operation', verbose_name='operation id')),
                ('bin_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='bin', to='bin.bin', verbose_name='bin id')),
            ],
        ),
    ]
