diff --git a/beasy/authentication/__init__.py b/beasy/authentication/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/beasy/authentication/__init__.py diff --git a/beasy/authentication/__pycache__/__init__.cpython-312.pyc b/beasy/authentication/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000..a58ffb4 Binary files /dev/null and b/beasy/authentication/__pycache__/__init__.cpython-312.pyc differ diff --git a/beasy/authentication/__pycache__/admin.cpython-312.pyc b/beasy/authentication/__pycache__/admin.cpython-312.pyc new file mode 100644 index 0000000..6a367d2 Binary files /dev/null and b/beasy/authentication/__pycache__/admin.cpython-312.pyc differ diff --git a/beasy/authentication/__pycache__/apps.cpython-312.pyc b/beasy/authentication/__pycache__/apps.cpython-312.pyc new file mode 100644 index 0000000..206a6b1 Binary files /dev/null and b/beasy/authentication/__pycache__/apps.cpython-312.pyc differ diff --git a/beasy/authentication/__pycache__/models.cpython-312.pyc b/beasy/authentication/__pycache__/models.cpython-312.pyc new file mode 100644 index 0000000..b2d2c86 Binary files /dev/null and b/beasy/authentication/__pycache__/models.cpython-312.pyc differ diff --git a/beasy/authentication/admin.py b/beasy/authentication/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/beasy/authentication/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/beasy/authentication/apps.py b/beasy/authentication/apps.py new file mode 100644 index 0000000..c65f1d2 --- /dev/null +++ b/beasy/authentication/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class AuthenticationConfig(AppConfig): + default_auto_field = "django.db.models.BigAutoField" + name = "authentication" diff --git a/beasy/authentication/migrations/__init__.py b/beasy/authentication/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/beasy/authentication/migrations/__init__.py diff --git a/beasy/authentication/models.py b/beasy/authentication/models.py new file mode 100644 index 0000000..4ce9b33 --- /dev/null +++ b/beasy/authentication/models.py @@ -0,0 +1,15 @@ +from django.contrib.auth.models import AbstractUser +from django.db import models + + +class User(AbstractUser): + CREATOR = 'CREATOR' + SUBSCRIBER = 'SUBSCRIBER' + + ROLE_CHOICES = ( + (CREATOR, 'Créateur'), + (SUBSCRIBER, 'Abonné'), + ) + profile_photo = models.ImageField(verbose_name='Photo de profil') + role = models.CharField(max_length=30, choices=ROLE_CHOICES, verbose_name='Rôle') +# Create your models here. diff --git a/beasy/authentication/tests.py b/beasy/authentication/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/beasy/authentication/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/beasy/authentication/views.py b/beasy/authentication/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/beasy/authentication/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/beasy/mobile/__init__.py b/beasy/mobile/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/beasy/mobile/__init__.py diff --git a/beasy/mobile/__pycache__/__init__.cpython-312.pyc b/beasy/mobile/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000..dd0caf9 Binary files /dev/null and b/beasy/mobile/__pycache__/__init__.cpython-312.pyc differ diff --git a/beasy/mobile/__pycache__/admin.cpython-312.pyc b/beasy/mobile/__pycache__/admin.cpython-312.pyc new file mode 100644 index 0000000..ef35ac4 Binary files /dev/null and b/beasy/mobile/__pycache__/admin.cpython-312.pyc differ diff --git a/beasy/mobile/__pycache__/apps.cpython-312.pyc b/beasy/mobile/__pycache__/apps.cpython-312.pyc new file mode 100644 index 0000000..37b1d78 Binary files /dev/null and b/beasy/mobile/__pycache__/apps.cpython-312.pyc differ diff --git a/beasy/mobile/__pycache__/models.cpython-312.pyc b/beasy/mobile/__pycache__/models.cpython-312.pyc new file mode 100644 index 0000000..5f4e2bb Binary files /dev/null and b/beasy/mobile/__pycache__/models.cpython-312.pyc differ diff --git a/beasy/mobile/admin.py b/beasy/mobile/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/beasy/mobile/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/beasy/mobile/apps.py b/beasy/mobile/apps.py new file mode 100644 index 0000000..2fc5ff5 --- /dev/null +++ b/beasy/mobile/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class MobileConfig(AppConfig): + default_auto_field = "django.db.models.BigAutoField" + name = "mobile" diff --git a/beasy/mobile/migrations/__init__.py b/beasy/mobile/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/beasy/mobile/migrations/__init__.py diff --git a/beasy/mobile/models.py b/beasy/mobile/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/beasy/mobile/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/beasy/mobile/tests.py b/beasy/mobile/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/beasy/mobile/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/beasy/mobile/views.py b/beasy/mobile/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/beasy/mobile/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here.