Initial commit: WrestleDesk full project
- Django backend with DRF (clubs, wrestlers, trainers, exercises, templates, trainings, homework, locations, leistungstest) - Next.js 16 frontend with React, Shadcn UI, Tailwind - JWT authentication - Full CRUD for all entities - Calendar view for trainings - Homework management system - Leistungstest tracking
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
# Generated by Django 4.2.29 on 2026-03-19 09:05
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('clubs', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Wrestler',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('first_name', models.CharField(max_length=100)),
|
||||
('last_name', models.CharField(max_length=100)),
|
||||
('group', models.CharField(choices=[('kids', 'Kids'), ('youth', 'Youth'), ('adults', 'Adults')], max_length=20)),
|
||||
('date_of_birth', models.DateField(blank=True, null=True)),
|
||||
('gender', models.CharField(choices=[('m', 'Male'), ('f', 'Female')], default='m', max_length=10)),
|
||||
('weight_category', models.CharField(blank=True, max_length=50)),
|
||||
('weight_kg', models.DecimalField(blank=True, decimal_places=2, max_digits=5, null=True)),
|
||||
('license_number', models.CharField(blank=True, max_length=100)),
|
||||
('license_expiry', models.DateField(blank=True, null=True)),
|
||||
('photo', models.ImageField(blank=True, null=True, upload_to='wrestlers/photos/')),
|
||||
('license_scan', models.FileField(blank=True, null=True, upload_to='wrestlers/licenses/')),
|
||||
('is_active', models.BooleanField(default=True)),
|
||||
('notes', models.TextField(blank=True)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
('club', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='wrestlers', to='clubs.club')),
|
||||
],
|
||||
options={
|
||||
'ordering': ['last_name', 'first_name'],
|
||||
'indexes': [models.Index(fields=['club', 'group'], name='wrestlers_w_club_id_bb7ef9_idx'), models.Index(fields=['is_active'], name='wrestlers_w_is_acti_985f60_idx')],
|
||||
},
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 4.2.29 on 2026-03-22 12:17
|
||||
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wrestlers', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='wrestler',
|
||||
name='license_scan',
|
||||
field=models.FileField(blank=True, null=True, upload_to='wrestlers/licenses/', validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['jpg', 'jpeg', 'png', 'pdf', 'webp'])]),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='wrestler',
|
||||
name='photo',
|
||||
field=models.ImageField(blank=True, null=True, upload_to='wrestlers/photos/', validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['jpg', 'jpeg', 'png', 'webp'])]),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user