mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Initial import
This commit is contained in:
18
sso/models.py
Normal file
18
sso/models.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from django.db import models
|
||||
from django.contrib.auth.models import User
|
||||
from eve_api.models.api_player import EVEAccount
|
||||
|
||||
class UserProfile(User):
|
||||
eveaccount = models.ForeignKey(EVEAccount)
|
||||
|
||||
class Site(models.Model):
|
||||
url = models.CharField(max_length=200)
|
||||
active = models.BooleanField()
|
||||
api = models.CharField(max_length=200)
|
||||
|
||||
class SiteAccount(models.Model):
|
||||
user = models.ForeignKey(UserProfile)
|
||||
site = models.ForeignKey(Site)
|
||||
username = models.CharField(max_length=200)
|
||||
active = models.BooleanField()
|
||||
|
||||
Reference in New Issue
Block a user