# Generated by Django 2.1.7 on 2019-02-25 02:53

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Activity',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255, verbose_name='Name')),
                ('dateFrom', models.IntegerField()),
                ('dateTo', models.IntegerField()),
                ('webPage', models.CharField(max_length=255, verbose_name='Web Page')),
                ('phone', models.CharField(blank=True, max_length=100, null=True)),
                ('createdAt', models.DateTimeField(auto_now_add=True, verbose_name='Created At')),
            ],
        ),
        migrations.CreateModel(
            name='Address',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('buildingName', models.CharField(blank=True, max_length=255, null=True, verbose_name='Building Name')),
                ('buildingUnit', models.CharField(blank=True, max_length=40, null=True, verbose_name='Building Unit')),
                ('placeName', models.CharField(max_length=255, verbose_name='Place Name')),
                ('postcode', models.CharField(max_length=20, verbose_name='Postcode')),
                ('streetName', models.CharField(max_length=255, verbose_name='Street Name')),
                ('streetNumber', models.CharField(blank=True, max_length=20, null=True, verbose_name='Street Number')),
                ('town', models.CharField(blank=True, max_length=20, null=True, verbose_name='Town')),
            ],
        ),
        migrations.AddField(
            model_name='activity',
            name='address',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='activity.Address'),
        ),
    ]
