Quiz
39 строк · 1.6 Кб
1# Generated by Django 4.0.4 on 2023-03-12 12:41
2
3from django.db import migrations, models
4import django.db.models.deletion
5
6
7class Migration(migrations.Migration):
8
9initial = True
10
11dependencies = [
12]
13
14operations = [
15migrations.CreateModel(
16name='Game',
17fields=[
18('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
19('type', models.CharField(choices=[('normal', 'Обычная')], default=('normal', 'Обычная'), max_length=16)),
20],
21),
22migrations.CreateModel(
23name='Queue',
24fields=[
25('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
26('type', models.CharField(choices=[('normal', 'Обычная')], default=('normal', 'Обычная'), max_length=16)),
27('lowest_level', models.SmallIntegerField()),
28('highest_level', models.SmallIntegerField()),
29],
30),
31migrations.CreateModel(
32name='Lobby',
33fields=[
34('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
35('type', models.CharField(choices=[('normal', 'Обычная')], default=('normal', 'Обычная'), max_length=16)),
36('queue', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='lobbies', to='games.queue')),
37],
38),
39]
40