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.
 
 
 
 
padel/scores/migrations/0001_initial.py

44 lines
1.8 KiB

# Generated by Django 4.1.1 on 2023-02-22 16:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Club',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200)),
],
),
migrations.CreateModel(
name='Match',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('date', models.DateTimeField(verbose_name='start date')),
('title', models.CharField(max_length=200)),
('team1', models.CharField(max_length=200)),
('team2', models.CharField(max_length=200)),
('team3', models.CharField(max_length=200)),
('team4', models.CharField(max_length=200)),
('team1scorecolumn1', models.CharField(max_length=200)),
('team1scorecolumn2', models.CharField(max_length=200)),
('team1scorecolumn3', models.CharField(max_length=200)),
('team1scorecolumn4', models.CharField(max_length=200)),
('team2scorecolumn1', models.CharField(max_length=200)),
('team2scorecolumn2', models.CharField(max_length=200)),
('team2scorecolumn3', models.CharField(max_length=200)),
('team2scorecolumn4', models.CharField(max_length=200)),
('team1scorecolumn5', models.CharField(max_length=200)),
('club', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scores.club')),
],
),
]