diff --git a/custom_sessions/__pycache__/apps.cpython-310.pyc b/custom_sessions/__pycache__/apps.cpython-310.pyc new file mode 100644 index 0000000000..4a78a5f622 Binary files /dev/null and b/custom_sessions/__pycache__/apps.cpython-310.pyc differ diff --git a/custom_sessions/__pycache__/models.cpython-310.pyc b/custom_sessions/__pycache__/models.cpython-310.pyc new file mode 100644 index 0000000000..7e467666fc Binary files /dev/null and b/custom_sessions/__pycache__/models.cpython-310.pyc differ diff --git a/custom_sessions/admin.py b/custom_sessions/admin.py new file mode 100644 index 0000000000..34ef61e28a --- /dev/null +++ b/custom_sessions/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. \ No newline at end of file diff --git a/custom_sessions/apps.py b/custom_sessions/apps.py new file mode 100644 index 0000000000..291da6368c --- /dev/null +++ b/custom_sessions/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class CustomSessionsConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'custom_sessions' \ No newline at end of file diff --git a/custom_sessions/models.py b/custom_sessions/models.py new file mode 100644 index 0000000000..5f7c72717e --- /dev/null +++ b/custom_sessions/models.py @@ -0,0 +1,48 @@ +from django.db import models +from events.models import Event +from microlocation.models import Microlocation +from session_types.models import SessionType +from tracks.models import Track +from users.models import CustomUser + +class CustomSession(models.Model): + title = models.CharField(max_length=2147483647) + subtitle = models.CharField(max_length=2147483647, null=True, blank=True) + short_abstract = models.TextField(null=True, blank=True) + long_abstract = models.TextField(null=True, blank=True) + comments = models.TextField(null=True, blank=True) + starts_at = models.DateTimeField(null=True, blank=True) + ends_at = models.DateTimeField(null=True, blank=True) + track = models.ForeignKey(Track, on_delete=models.CASCADE, null=True, blank=True) + language = models.CharField(max_length=2147483647, null=True, blank=True) + microlocation = models.ForeignKey(Microlocation, on_delete=models.CASCADE, null=True, blank=True) + session_type = models.ForeignKey(SessionType, on_delete=models.CASCADE, null=True, blank=True) + slides_url = models.CharField(max_length=2147483647, null=True, blank=True) + video_url = models.CharField(max_length=2147483647, null=True, blank=True) + audio_url = models.CharField(max_length=2147483647, null=True, blank=True) + signup_url = models.CharField(max_length=2147483647, null=True, blank=True) + event = models.ForeignKey(Event, on_delete=models.SET_NULL, null=True, blank=True, db_index=True) + state = models.CharField(max_length=2147483647, null=True, blank=True, db_index=True) + created_at = models.DateTimeField(null=True, blank=True) + deleted_at = models.DateTimeField(null=True, blank=True) + submitted_at = models.DateTimeField(null=True, blank=True) + submission_modifier = models.CharField(max_length=2147483647, null=True, blank=True) + is_mail_sent = models.BooleanField(null=True, blank=True) + level = models.CharField(max_length=2147483647, null=True, blank=True) + creator = models.ForeignKey(CustomUser, on_delete=models.CASCADE, null=True, blank=True) + last_modified_at = models.DateTimeField(null=True, blank=True) + send_email = models.BooleanField(null=True, blank=True) + is_locked = models.BooleanField(default=False) + complex_field_values = models.JSONField(null=True, blank=True) + average_rating = models.FloatField(default=0) + rating_count = models.IntegerField(default=0) + facebook = models.CharField(max_length=2147483647, null=True, blank=True) + github = models.CharField(max_length=2147483647, null=True, blank=True) + gitlab = models.CharField(max_length=2147483647, null=True, blank=True) + instagram = models.CharField(max_length=2147483647, null=True, blank=True) + linkedin = models.CharField(max_length=2147483647, null=True, blank=True) + twitter = models.CharField(max_length=2147483647, null=True, blank=True) + website = models.CharField(max_length=2147483647, null=True, blank=True) + favourite_count = models.IntegerField(default=0) + mastodon = models.CharField(max_length=2147483647, null=True, blank=True) + slides = models.JSONField(null=True, blank=True) \ No newline at end of file diff --git a/custom_sessions/tests.py b/custom_sessions/tests.py new file mode 100644 index 0000000000..c2629a3aba --- /dev/null +++ b/custom_sessions/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. \ No newline at end of file diff --git a/custom_sessions/views.py b/custom_sessions/views.py new file mode 100644 index 0000000000..b91e46a51e --- /dev/null +++ b/custom_sessions/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. \ No newline at end of file diff --git a/session_types/__pycache__/apps.cpython-310.pyc b/session_types/__pycache__/apps.cpython-310.pyc new file mode 100644 index 0000000000..295e0c7765 Binary files /dev/null and b/session_types/__pycache__/apps.cpython-310.pyc differ diff --git a/session_types/__pycache__/models.cpython-310.pyc b/session_types/__pycache__/models.cpython-310.pyc new file mode 100644 index 0000000000..0c7748bd0e Binary files /dev/null and b/session_types/__pycache__/models.cpython-310.pyc differ diff --git a/session_types/admin.py b/session_types/admin.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/session_types/apps.py b/session_types/apps.py new file mode 100644 index 0000000000..2bfb97cbd2 --- /dev/null +++ b/session_types/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class SessionTypesConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'session_types' \ No newline at end of file diff --git a/session_types/models.py b/session_types/models.py new file mode 100644 index 0000000000..abd8015423 --- /dev/null +++ b/session_types/models.py @@ -0,0 +1,9 @@ +from django.db import models +from events.models import Event + +class SessionType(models.Model): + name = models.CharField(max_length=2147483647) + length = models.CharField(max_length=2147483647) + event = models.ForeignKey(Event, on_delete=models.CASCADE, null=True, blank=True) + deleted_at = models.DateTimeField(null=True, blank=True) + position = models.IntegerField(null=True, blank=True) \ No newline at end of file diff --git a/session_types/tests.py b/session_types/tests.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/session_types/views.py b/session_types/views.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tracks/__pycache__/admin.cpython-310.pyc b/tracks/__pycache__/admin.cpython-310.pyc new file mode 100644 index 0000000000..9b5ac3c93d Binary files /dev/null and b/tracks/__pycache__/admin.cpython-310.pyc differ diff --git a/tracks/__pycache__/apps.cpython-310.pyc b/tracks/__pycache__/apps.cpython-310.pyc new file mode 100644 index 0000000000..cd62649c33 Binary files /dev/null and b/tracks/__pycache__/apps.cpython-310.pyc differ diff --git a/tracks/__pycache__/models.cpython-310.pyc b/tracks/__pycache__/models.cpython-310.pyc new file mode 100644 index 0000000000..c9a68da2a9 Binary files /dev/null and b/tracks/__pycache__/models.cpython-310.pyc differ diff --git a/tracks/admin.py b/tracks/admin.py new file mode 100644 index 0000000000..34ef61e28a --- /dev/null +++ b/tracks/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. \ No newline at end of file diff --git a/tracks/apps.py b/tracks/apps.py new file mode 100644 index 0000000000..80fcc2b23c --- /dev/null +++ b/tracks/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class TracksConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'tracks' \ No newline at end of file diff --git a/tracks/models.py b/tracks/models.py new file mode 100644 index 0000000000..0a16a461dc --- /dev/null +++ b/tracks/models.py @@ -0,0 +1,10 @@ +from django.db import models +from events.models import Event + +class Track(models.Model): + name = models.CharField(max_length=2147483647) + description = models.TextField(null=True, blank=True) + color = models.CharField(max_length=2147483647) + event = models.ForeignKey(Event, on_delete=models.CASCADE, null=True, blank=True) + deleted_at = models.DateTimeField(null=True, blank=True) + position = models.IntegerField(null=True, blank=True) \ No newline at end of file diff --git a/tracks/tests.py b/tracks/tests.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tracks/views.py b/tracks/views.py new file mode 100644 index 0000000000..b91e46a51e --- /dev/null +++ b/tracks/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. \ No newline at end of file