parent
427dbdeb2a
commit
6517f772a3
@ -0,0 +1,26 @@ |
||||
# Generated by Django 4.2.11 on 2024-10-24 06:55 |
||||
|
||||
from django.db import migrations, models |
||||
import django.db.models.deletion |
||||
import uuid |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
|
||||
dependencies = [ |
||||
('tournaments', '0090_tournament_initial_seed_count_and_more'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.CreateModel( |
||||
name='DrawLog', |
||||
fields=[ |
||||
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)), |
||||
('draw_date', models.DateTimeField()), |
||||
('draw_seed', models.IntegerField()), |
||||
('draw_match_index', models.IntegerField()), |
||||
('draw_team_position', models.IntegerField()), |
||||
('tournament', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tournaments.tournament')), |
||||
], |
||||
), |
||||
] |
||||
@ -0,0 +1,10 @@ |
||||
from django.db import models |
||||
import uuid |
||||
|
||||
class DrawLog(models.Model): |
||||
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=True) |
||||
tournament = models.ForeignKey('Tournament', on_delete=models.CASCADE) |
||||
draw_date = models.DateTimeField() |
||||
draw_seed = models.IntegerField() |
||||
draw_match_index = models.IntegerField() |
||||
draw_team_position = models.IntegerField() |
||||
Loading…
Reference in new issue