-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path0001_initial.py
34 lines (28 loc) · 1.11 KB
/
0001_initial.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Generated by Django 4.0.3 on 2022-03-22 00:50
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='PokemonType',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=30)),
],
),
migrations.CreateModel(
name='Pokemon',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('number', models.IntegerField()),
('name', models.CharField(max_length=30)),
('height', models.FloatField()),
('weight', models.FloatField()),
('image_front', models.CharField(max_length=30)),
('image_back', models.CharField(max_length=30)),
('types', models.ManyToManyField(to='pokedex_app.pokemontype')),
],
),
]