summaryrefslogtreecommitdiff
path: root/web/migrations/0001_initial.py
diff options
context:
space:
mode:
authorDominic DiTaranto <domdit@gmail.com>2024-10-28 11:36:09 -0400
committerDominic DiTaranto <domdit@gmail.com>2024-10-28 11:36:09 -0400
commit286161b0912007c6f3859868a006e9818752a4aa (patch)
treed016592f7fa38b93f15e818586a9d294d80b6f3c /web/migrations/0001_initial.py
init commit
Diffstat (limited to 'web/migrations/0001_initial.py')
-rw-r--r--web/migrations/0001_initial.py46
1 files changed, 46 insertions, 0 deletions
diff --git a/web/migrations/0001_initial.py b/web/migrations/0001_initial.py
new file mode 100644
index 0000000..5107a35
--- /dev/null
+++ b/web/migrations/0001_initial.py
@@ -0,0 +1,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',
+ },
+ ),
+ ]