You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.9 KiB
Python

# Generated by Django 4.1.4 on 2022-12-25 15:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Menu',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('mensa_id', models.IntegerField()),
('date', models.CharField(max_length=10)),
],
),
migrations.CreateModel(
name='Meal',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=144)),
('type', models.CharField(max_length=144)),
('allergens', models.CharField(max_length=144)),
('tags', models.CharField(max_length=144)),
('likes', models.IntegerField(default=0)),
('dislikes', models.IntegerField(default=0)),
('price_student', models.FloatField(max_length=8)),
('price_employee', models.FloatField(max_length=8)),
('price_guest', models.FloatField(max_length=8)),
('related_menus', models.ManyToManyField(to='mensaviewer.menu')),
],
),
migrations.CreateModel(
name='Comment',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('username', models.CharField(default='anon', max_length=144)),
('comment', models.CharField(max_length=720)),
('related_meal', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='mensaviewer.meal')),
],
),
]