pokeapi/pokemon_v2/migrations/0015_pokemoncries.py

42 lines
1.1 KiB
Python
Raw Normal View History

# Generated by Django 3.2.23 on 2024-02-02 18:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
2024-02-02 19:02:51 +00:00
("pokemon_v2", "0014_auto_20231121_1209"),
]
operations = [
migrations.CreateModel(
2024-02-02 19:02:51 +00:00
name="PokemonCries",
fields=[
2024-02-02 19:02:51 +00:00
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("cries", models.JSONField()),
(
"pokemon",
models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.CASCADE,
related_name="pokemoncries",
to="pokemon_v2.pokemon",
),
),
],
options={
2024-02-02 19:02:51 +00:00
"abstract": False,
},
),
]