1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Generated by Django 5.1.2 on 2024-10-22 20:31
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Event',
fields=[
('created_at', models.DateTimeField(auto_now_add=True, null=True)),
('updated_at', models.DateTimeField(auto_now=True, null=True)),
('active', models.BooleanField(default=True)),
('id', models.AutoField(primary_key=True, serialize=False)),
('name', models.TextField()),
('start_date', models.DateTimeField()),
('end_date', models.DateTimeField()),
('participants', models.IntegerField()),
],
options={
'db_table': 'events',
},
),
migrations.CreateModel(
name='Availability',
fields=[
('created_at', models.DateTimeField(auto_now_add=True, null=True)),
('updated_at', models.DateTimeField(auto_now=True, null=True)),
('active', models.BooleanField(default=True)),
('id', models.AutoField(primary_key=True, serialize=False)),
('user', models.TextField()),
('time_table', models.JSONField()),
('event_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='web.event')),
],
options={
'db_table': 'availabilities',
},
),
]
|