Files
eggs-backend/core/apps/eggs/migrations/0023_broken.py
husanjon ab73d05ecc
Some checks failed
Build and Push to Docker Hub / build-test-push (push) Failing after 1m55s
gold eggs backend
2026-04-15 08:59:36 +02:00

43 lines
1.3 KiB
Python

# Generated by Django 5.0.6 on 2024-05-08 13:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("eggs", "0022_alter_location_lat_alter_location_long"),
]
operations = [
migrations.CreateModel(
name="Broken",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("created_at", models.DateTimeField(auto_now_add=True)),
("updated_at", models.DateTimeField(auto_now=True)),
("comment", models.TextField(verbose_name="Comment")),
("quantity", models.IntegerField(verbose_name="Quantity")),
(
"product",
models.ManyToManyField(
related_name="brokens", to="eggs.product"
),
),
],
options={
"verbose_name": "Broken",
"verbose_name_plural": "Brokens",
"db_table": "broken",
},
),
]