1
0
clubhaus-schornbach/clubhaus/homepage/migrations/0001_initial.py

34 lines
1.1 KiB
Python

# Generated by Django 4.0.5 on 2022-07-02 12:56
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='TobaccoCategory',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200, unique=True)),
],
),
migrations.CreateModel(
name='Tobacco',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200, unique=True)),
('description', models.TextField(blank=True)),
('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='homepage.tobaccocategory')),
('in_stock', models.BooleanField()),
('picture', models.ImageField(blank=True, upload_to='tobacco_images/')),
],
),
]