backend/marking_hack/market/migrations/0007_storeitem.py

47 lines
1.3 KiB
Python

# Generated by Django 4.1.7 on 2023-03-26 09:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("market", "0006_itemtransaction_itemsale"),
]
operations = [
migrations.CreateModel(
name="StoreItem",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("data", models.DateField()),
("amount", models.IntegerField()),
(
"item",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="sales",
to="market.item",
),
),
(
"store",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="sales",
to="market.store",
),
),
],
),
]