2022-05-13 05:11:35 +02:00
|
|
|
# Generated by Django 4.0.4 on 2022-05-13 05:27
|
2022-05-13 03:04:13 +02:00
|
|
|
|
|
|
|
import datetime
|
2022-05-13 05:11:35 +02:00
|
|
|
import django.core.validators
|
2022-05-13 03:04:13 +02:00
|
|
|
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')),
|
2022-05-13 05:11:35 +02:00
|
|
|
('project_url', models.URLField(validators=[django.core.validators.RegexValidator(regex='https?://scratch\\.mit\\.edu/projects/([0-9]+)/?')], verbose_name='Scratch project url')),
|
2022-05-13 03:04:13 +02:00
|
|
|
('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='scratch_show.event')),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|