mirror of
https://github.com/adrigongv23/G26---Telemetry-Software.git
synced 2026-08-25 11:33:17 +02:00
Inicio del Django y base de datos
This commit is contained in:
parent
57494f02e5
commit
0e0c8d7d1b
66 changed files with 647 additions and 69 deletions
30
Plataform_Web/temporadas/migrations/0001_initial.py
Normal file
30
Plataform_Web/temporadas/migrations/0001_initial.py
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Generated by Django 6.0.2 on 2026-02-17 11:28
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Temporada',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('nombre', models.CharField(max_length=50, unique=True)),
|
||||
('fecha_inicio', models.DateField()),
|
||||
('fecha_fin', models.DateField()),
|
||||
('presupuesto', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
|
||||
('actual', models.BooleanField(default=False, verbose_name='¿Es la temporada actual?')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Temporada',
|
||||
'verbose_name_plural': 'Temporadas',
|
||||
'ordering': ['-fecha_inicio'],
|
||||
},
|
||||
),
|
||||
]
|
||||
0
Plataform_Web/temporadas/migrations/__init__.py
Normal file
0
Plataform_Web/temporadas/migrations/__init__.py
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue