pokeapi/pokemon_v2/migrations/0002_itemsprites_pokemonformsprites_pokemonsprites.py
2023-11-08 10:44:55 +01:00

94 lines
2.8 KiB
Python

from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("pokemon_v2", "0001_squashed_0002_auto_20160301_1408"),
]
operations = [
migrations.CreateModel(
name="ItemSprites",
fields=[
(
"id",
models.AutoField(
verbose_name="ID",
serialize=False,
auto_created=True,
primary_key=True,
),
),
("sprites", models.CharField(max_length=500)),
(
"item",
models.ForeignKey(
on_delete=models.CASCADE,
related_name="itemsprites",
blank=True,
to="pokemon_v2.Item",
null=True,
),
),
],
options={
"abstract": False,
},
),
migrations.CreateModel(
name="PokemonFormSprites",
fields=[
(
"id",
models.AutoField(
verbose_name="ID",
serialize=False,
auto_created=True,
primary_key=True,
),
),
("sprites", models.CharField(max_length=500)),
(
"pokemon_form",
models.ForeignKey(
on_delete=models.CASCADE,
related_name="pokemonformsprites",
blank=True,
to="pokemon_v2.PokemonForm",
null=True,
),
),
],
options={
"abstract": False,
},
),
migrations.CreateModel(
name="PokemonSprites",
fields=[
(
"id",
models.AutoField(
verbose_name="ID",
serialize=False,
auto_created=True,
primary_key=True,
),
),
("sprites", models.CharField(max_length=500)),
(
"pokemon",
models.ForeignKey(
on_delete=models.CASCADE,
related_name="pokemonsprites",
blank=True,
to="pokemon_v2.Pokemon",
null=True,
),
),
],
options={
"abstract": False,
},
),
]