phantasmobile/app/item/migrations/0002_initial.py

47 lines
1.3 KiB
Python
Raw Normal View History

2023-07-15 07:30:36 +00:00
# Generated by Django 4.2.3 on 2023-07-11 16:06
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("item", "0001_initial"),
]
operations = [
migrations.AddField(
model_name="item",
name="user",
field=models.ForeignKey(
null=True,
on_delete=django.db.models.deletion.CASCADE,
related_name="items",
to=settings.AUTH_USER_MODEL,
),
),
migrations.AddField(
model_name="comment",
name="item",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="comments",
to="item.item",
),
),
migrations.AddField(
model_name="comment",
name="user",
field=models.ForeignKey(
null=True,
on_delete=django.db.models.deletion.CASCADE,
related_name="comments",
to=settings.AUTH_USER_MODEL,
),
),
]