mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-07 23:28:16 -05:00
41 lines
1.7 KiB
Python
41 lines
1.7 KiB
Python
# Generated by Django 3.1.1 on 2020-11-06 15:55
|
|
|
|
import datetime
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
('cookbook', '0088_shoppinglist_finished'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name='invitelink',
|
|
name='valid_until',
|
|
field=models.DateField(default=datetime.date(2020, 11, 20)),
|
|
),
|
|
migrations.CreateModel(
|
|
name='NutritionInformation',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('fats', models.DecimalField(decimal_places=16, default=0, max_digits=32)),
|
|
('carbohydrates', models.DecimalField(decimal_places=16, default=0, max_digits=32)),
|
|
('proteins', models.DecimalField(decimal_places=16, default=0, max_digits=32)),
|
|
('calories', models.DecimalField(decimal_places=16, default=0, max_digits=32)),
|
|
('source', models.CharField(blank=True, default='', max_length=512, null=True)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
),
|
|
migrations.AddField(
|
|
model_name='recipe',
|
|
name='nutrition',
|
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='cookbook.nutritioninformation'),
|
|
),
|
|
]
|