summaryrefslogtreecommitdiff
path: root/app/planner/migrations/0001_initial.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/planner/migrations/0001_initial.py')
-rw-r--r--app/planner/migrations/0001_initial.py42
1 files changed, 42 insertions, 0 deletions
diff --git a/app/planner/migrations/0001_initial.py b/app/planner/migrations/0001_initial.py
new file mode 100644
index 0000000..8ae9744
--- /dev/null
+++ b/app/planner/migrations/0001_initial.py
@@ -0,0 +1,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',
+ },
+ ),
+ ]