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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# Generated by Django 2.1.2 on 2020-07-05 16:18
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Guild',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(blank=True, max_length=200)),
('seperation', models.PositiveIntegerField()),
('notes', models.TextField(blank=True, null=True)),
],
),
migrations.CreateModel(
name='Plant',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200)),
('scientific_name', models.CharField(max_length=200)),
('edible', models.BooleanField(default=False)),
('date_created', models.DateTimeField(default=datetime.datetime.now)),
('growth_time', models.PositiveIntegerField()),
('germination_time', models.PositiveIntegerField()),
('seperation', models.PositiveIntegerField()),
('notes', models.TextField(blank=True, null=True)),
('conditions', models.IntegerField(choices=[(0, 'Direct Sun'), (1, 'Part Sun'), (2, 'Shade')], default=0)),
('organic', models.BooleanField(default=True)),
('heirloom', models.BooleanField(default=True)),
],
options={
'ordering': ('-date_created',),
'get_latest_by': 'date_created',
},
),
migrations.CreateModel(
name='Planting',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('seed_start_area', models.IntegerField(choices=[(0, 'Indoors'), (1, 'Direct Sow'), (2, 'Greenhouse')], default=0)),
('date_seed_started', models.DateField(verbose_name='Date published')),
('date_seed_sprouted', models.DateField(verbose_name='Date published')),
('date_hardened_off', models.DateField(verbose_name='Date published')),
('date_planted', models.DateField(verbose_name='Date published')),
('garden_area', models.IntegerField(choices=[(0, 'Far Plot Mound'), (1, 'Far Plot ground'), (2, 'Herb Plot half mound')], default=0)),
('notes', models.TextField(blank=True, null=True)),
('plant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='garden.Plant')),
],
options={
'ordering': ('-date_seed_started',),
'get_latest_by': 'date_seed_started',
},
),
migrations.CreateModel(
name='Seed',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('brand', models.CharField(max_length=200)),
('date_created', models.DateTimeField(default=datetime.datetime.now)),
('estimated_growth_time', models.PositiveIntegerField()),
('estimated_germination_time', models.PositiveIntegerField()),
('organic', models.BooleanField(default=True)),
('notes', models.TextField(blank=True, null=True)),
('plant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='garden.Plant')),
],
options={
'ordering': ('-date_created',),
'get_latest_by': 'date_created',
},
),
migrations.AddField(
model_name='planting',
name='seed',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='garden.Seed'),
),
migrations.AddField(
model_name='guild',
name='plant',
field=models.ManyToManyField(to='garden.Plant'),
),
]
|