35 lines
1.0 KiB
Python
35 lines
1.0 KiB
Python
# Generated by Django 2.2.19 on 2021-11-25 13:21
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('agendas', '0103_publication_datetime'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Subscription',
|
|
fields=[
|
|
(
|
|
'id',
|
|
models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
|
|
),
|
|
('user_external_id', models.CharField(max_length=250)),
|
|
('date_start', models.DateField()),
|
|
('date_end', models.DateField()),
|
|
(
|
|
'agenda',
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name='subscriptions',
|
|
to='agendas.Agenda',
|
|
),
|
|
),
|
|
],
|
|
),
|
|
]
|