summaryrefslogtreecommitdiff
path: root/app/planner/migrations/0001_initial.py
blob: 8ae974437c9aed7285e9472be7d4c3a2c8ae1c7b (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
# Generated by Django 3.2.5 on 2021-07-25 11:56

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('locations', '0028_auto_20200308_1152'),
    ]

    operations = [
        migrations.CreateModel(
            name='Camp',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=200)),
                ('date_arrive', models.DateField(verbose_name='Arrival Date')),
                ('date_depart', models.DateField(blank=True, null=True, verbose_name='Departure Date')),
                ('distance_from_previous', models.FloatField(blank=True, null=True)),
                ('link', models.CharField(blank=True, max_length=200, null=True)),
                ('point', django.contrib.gis.db.models.fields.PointField(blank=True, null=True, srid=4326)),
                ('notes', models.TextField(blank=True, null=True)),
                ('notes_html', models.TextField(blank=True, null=True)),
                ('price', models.FloatField(blank=True, null=True)),
                ('site_number', models.FloatField(blank=True, null=True)),
                ('has_water', models.BooleanField(default=True)),
                ('has_electric', models.BooleanField(default=True)),
                ('has_dump', models.BooleanField(default=True)),
                ('rating', models.CharField(blank=True, choices=[('1', '1 Star'), ('2', '2 Stars'), ('3', '3 Stars'), ('4', '4 Stars'), ('5', '5 Stars')], max_length=1, null=True)),
                ('location', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='locations.location')),
            ],
            options={
                'ordering': ('-date_arrive',),
                'get_latest_by': 'date_arrive',
            },
        ),
    ]