SOITA/trials/migrations/0023_tournament.py
Hubert Jankowski 273ffb7df5 add migrations
2022-05-24 21:02:42 +02:00

26 lines
881 B
Python

# Generated by Django 3.2.9 on 2022-05-24 17:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('trials', '0022_test_difficulty_label'),
]
operations = [
migrations.CreateModel(
name='Tournament',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=100)),
('password', models.CharField(max_length=100)),
('created_by', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='tournaments', to=settings.AUTH_USER_MODEL)),
],
),
]