roosterwijs/backend/modules/uren/migrations/0001_initial.py

28 lines
940 B
Python

import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
("core", "0001_initial"),
]
operations = [
migrations.CreateModel(
name="UrenMomentopname",
fields=[
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
("gemaakt_op", models.DateTimeField(auto_now_add=True)),
("payload", models.JSONField(default=dict)),
("schooljaar", models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name="uren_momentopnames", to="core.schooljaar")),
],
options={
"verbose_name": "uren-momentopname",
"verbose_name_plural": "uren-momentopnames",
"ordering": ["-gemaakt_op"],
},
),
]