scratch-site/scratch_show/migrations/0001_initial.py

36 lines
1.3 KiB
Python
Raw Normal View History

2022-05-13 03:04:13 +02:00
# Generated by Django 4.0.4 on 2022-05-13 00:55
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Event',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=128, verbose_name="Nom de l'évènement")),
('date', models.DateField(default=datetime.date.today)),
('accept_projects', models.BooleanField(default=True)),
],
),
migrations.CreateModel(
name='ScratchProject',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=128, verbose_name='Nom du projet')),
('author_name', models.CharField(max_length=128, verbose_name='Auteur')),
('project_id', models.PositiveBigIntegerField(unique=True, verbose_name='Scratch project id')),
('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scratch_show.event')),
],
),
]