diff --git a/program/migrations/0063_alter_note_timeslot_alter_userprofile_user.py b/program/migrations/0063_alter_note_timeslot_alter_userprofile_user.py
new file mode 100644
index 0000000000000000000000000000000000000000..0f2249e5337ec0c42e52f3f1eabda0128cab7bd7
--- /dev/null
+++ b/program/migrations/0063_alter_note_timeslot_alter_userprofile_user.py
@@ -0,0 +1,32 @@
+# Generated by Django 4.2.2 on 2023-07-12 22:56
+
+import django.db.models.deletion
+from django.conf import settings
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+    dependencies = [
+        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+        ("program", "0062_alter_image_height_alter_image_width_and_more"),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name="note",
+            name="timeslot",
+            field=models.OneToOneField(
+                null=True, on_delete=django.db.models.deletion.SET_NULL, to="program.timeslot"
+            ),
+        ),
+        migrations.AlterField(
+            model_name="userprofile",
+            name="user",
+            field=models.OneToOneField(
+                null=True,
+                on_delete=django.db.models.deletion.SET_NULL,
+                related_name="profile",
+                to=settings.AUTH_USER_MODEL,
+            ),
+        ),
+    ]
diff --git a/program/models.py b/program/models.py
index e6cd1ebce7494a7915d6007e08040db1c2693975..0a24036d3ba1f9e8da8a86edac20a7e4cd602f57 100644
--- a/program/models.py
+++ b/program/models.py
@@ -444,7 +444,7 @@ class Note(models.Model):
     slug = models.SlugField(max_length=32, unique=True)
     summary = models.TextField(blank=True)
     tags = models.TextField(blank=True)
-    timeslot = models.OneToOneField(TimeSlot, on_delete=models.CASCADE, unique=True)
+    timeslot = models.OneToOneField(TimeSlot, null=True, on_delete=models.SET_NULL, unique=True)
     title = models.CharField(max_length=128)
     updated_at = models.DateTimeField(auto_now=True, blank=True, null=True)
     updated_by = models.CharField(blank=True, default="", max_length=150)
@@ -474,7 +474,7 @@ class UserProfile(models.Model):
     created_by = models.CharField(max_length=150)
     updated_at = models.DateTimeField(auto_now=True, blank=True, null=True)
     updated_by = models.CharField(blank=True, default="", max_length=150)
-    user = models.OneToOneField(User, on_delete=models.CASCADE, related_name="profile")
+    user = models.OneToOneField(User, null=True, on_delete=models.SET_NULL, related_name="profile")
 
     def __str__(self):
         return self.user.username