summaryrefslogtreecommitdiff
path: root/app/unused_apps/daily/migrations/0001_initial.py
blob: 70a97556adbb98265294c334799fe09f87850a40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-18 20:38
from __future__ import unicode_literals

import django.contrib.gis.db.models.fields
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        #('locations', '__first__'),
    ]

    operations = [
        migrations.CreateModel(
            name='CheckIn',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('point', django.contrib.gis.db.models.fields.PointField(blank=True, srid=4326)),
                ('date', models.DateField(default=django.utils.timezone.now)),
                ('location', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')),
            ],
        ),
        migrations.CreateModel(
            name='Daily',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200)),
                ('slug', models.SlugField()),
                ('body_html', models.TextField(blank=True)),
                ('body_markdown', models.TextField()),
                ('date', models.DateField(verbose_name='Date published')),
                ('location', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='locations.Location')),
            ],
            options={
                'get_latest_by': 'date',
                'ordering': ('date',),
            },
        ),
        migrations.CreateModel(
            name='Weather',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('point', django.contrib.gis.db.models.fields.PointField(blank=True, null=True, srid=4326)),
                ('date', models.DateField()),
                ('temp_max', models.CharField(max_length=4)),
                ('temp_min', models.CharField(max_length=4)),
                ('temp_mean', models.CharField(max_length=4)),
                ('wind_mean', models.CharField(max_length=10)),
                ('wind_max', models.CharField(max_length=10)),
                ('humidity', models.CharField(max_length=10)),
                ('snow_amount', models.CharField(max_length=10)),
                ('rain_amount', models.CharField(max_length=10)),
                ('fog', models.NullBooleanField()),
                ('rain', models.NullBooleanField()),
                ('snow', models.NullBooleanField()),
                ('hail', models.NullBooleanField()),
                ('thunder', models.NullBooleanField()),
            ],
        ),
        migrations.AddField(
            model_name='daily',
            name='weather',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='daily.Weather'),
        ),
    ]