mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-26 13:20:26 +00:00
02baf0b3ef
Add pokemon cries resource field to pokemon endpoint
25 lines
786 B
Python
25 lines
786 B
Python
# 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 = [
|
|
('pokemon_v2', '0014_auto_20231121_1209'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='PokemonCries',
|
|
fields=[
|
|
('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={
|
|
'abstract': False,
|
|
},
|
|
),
|
|
]
|