From e33ed569630cbbaaea6a6e55d6f8ab36c9c70168 Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Sun, 25 Feb 2024 00:32:15 +0100 Subject: [PATCH] Some initial user model setup --- mixr_api/user/models/user_information.py | 8 ++++++++ mixr_api/user/models/user_services.py | 0 2 files changed, 8 insertions(+) create mode 100644 mixr_api/user/models/user_information.py create mode 100644 mixr_api/user/models/user_services.py diff --git a/mixr_api/user/models/user_information.py b/mixr_api/user/models/user_information.py new file mode 100644 index 0000000..a5816f9 --- /dev/null +++ b/mixr_api/user/models/user_information.py @@ -0,0 +1,8 @@ +from django.contrib.auth.models import User +from django.db import models + + +class UserInformation(models.Model): + user = models.OneToOneField(User, on_delete=models.CASCADE, primary_key=True) + + display_name = models.CharField(max_length=150, null=True) diff --git a/mixr_api/user/models/user_services.py b/mixr_api/user/models/user_services.py new file mode 100644 index 0000000..e69de29