You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
# Generated by Django 3.2.13 on 2022-05-04 21:24
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('core', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='goal',
|
|
name='period',
|
|
field=models.IntegerField(choices=[(1, '1st'), (2, '2nd'), (3, '3rd'), (4, 'OT'), (5, '2OT'), (6, '3OT'), (7, '4OT'), (8, '5OT'), (9, '6OT'), (0, 'SO')], default=1),
|
|
),
|
|
migrations.AddField(
|
|
model_name='goal',
|
|
name='time',
|
|
field=models.DurationField(blank=True, null=True),
|
|
),
|
|
migrations.CreateModel(
|
|
name='Shot',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('game', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='shots', to='core.game')),
|
|
('shooter', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='shots', to='core.player')),
|
|
],
|
|
),
|
|
]
|