mirror of
https://github.com/Rushilwiz/launchx.git
synced 2025-04-05 12:40:18 -04:00
43 lines
1.5 KiB
Python
43 lines
1.5 KiB
Python
# Generated by Django 3.1.6 on 2021-02-03 17:45
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Team',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('number', models.IntegerField()),
|
|
('name', models.CharField(blank=True, max_length=20, null=True)),
|
|
('reciept', models.FileField(blank=True, null=True, upload_to='reciepts/')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Team',
|
|
'verbose_name_plural': 'Teams',
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='Competitor',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(blank=True, default='', max_length=20)),
|
|
('email', models.EmailField(max_length=254)),
|
|
('is_leader', models.BooleanField(default=False)),
|
|
('team', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='innovate.team')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Competitor',
|
|
'verbose_name_plural': 'Competitors',
|
|
},
|
|
),
|
|
]
|