aboutsummaryrefslogtreecommitdiff
path: root/authentication/models.py
blob: bce7f8e8da70787a21a645e0310326d51032a24a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from django.db import models
from django.contrib.auth.models import AbstractUser


# Adding Discord Specific Fields to the User Model
class User(AbstractUser):
    discord_id = models.CharField(max_length=255, unique=True)
    discord_access_token = models.CharField(max_length=255)
    discord_refresh_token = models.CharField(max_length=255)
    discord_token_type = models.CharField(max_length=255)
    discord_username = models.CharField(max_length=255, unique=True)
    discord_avatar = models.CharField(max_length=255, blank=True)
    discord_banner = models.CharField(max_length=255, blank=True)
    discord_global_name = models.CharField(max_length=255)
    discord_guild_name = models.CharField(max_length=255, blank=True)
    mal_token_type = models.CharField(max_length=255, blank=True)
    mal_token_expires_in = models.DateTimeField(null=True, blank=True)
    mal_access_token = models.CharField(max_length=1024, blank=True)
    mal_refresh_token = models.CharField(max_length=1024, blank=True)