dsite/recipe/migrations/0002_auto_20211002_1926.py
Ching 1dd97b9e54 feat(dailyrecipe and week recipe): [A] 增加dailyrecipe 每日菜单,增加 weekrecipe 接口
[A] 增加dailyrecipe 每日菜单,增加 weekrecipe 接口

Signed-off-by: Ching <loooching@gmail.com>
2021-10-02 20:28:35 +08:00

28 lines
825 B
Python

# Generated by Django 3.2.6 on 2021-10-02 11:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipe', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='recipe',
name='recipe_type',
field=models.CharField(default='meat', max_length=32),
),
migrations.CreateModel(
name='DailyRecipe',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('date', models.DateField()),
('meal_type', models.CharField(default='supper', max_length=32)),
('recipes', models.ManyToManyField(to='recipe.Recipe')),
],
),
]