3fefc550fe
- 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
17 lines
494 B
Python
17 lines
494 B
Python
from django.db import models
|
|
|
|
|
|
class Club(models.Model):
|
|
name = models.CharField(max_length=200)
|
|
short_name = models.CharField(max_length=50, blank=True)
|
|
logo = models.ImageField(upload_to='clubs/logos/', null=True, blank=True)
|
|
is_active = models.BooleanField(default=True)
|
|
created_at = models.DateTimeField(auto_now_add=True)
|
|
updated_at = models.DateTimeField(auto_now=True)
|
|
|
|
class Meta:
|
|
ordering = ['name']
|
|
|
|
def __str__(self):
|
|
return self.name
|