mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 20:40:17 +02:00
38 lines
1.5 KiB
Python
Executable File
38 lines
1.5 KiB
Python
Executable File
from django.db import models
|
|
from django.contrib.auth.models import User
|
|
|
|
from eveonline.models import EveCharacter
|
|
from eveonline.models import EveCorporationInfo
|
|
|
|
|
|
class HRApplication(models.Model):
|
|
character_name = models.CharField(max_length=254, default="")
|
|
full_api_id = models.CharField(max_length=254, default="")
|
|
full_api_key = models.CharField(max_length=254, default="")
|
|
is_a_spi = models.CharField(max_length=254, default="")
|
|
about = models.TextField(default="")
|
|
extra = models.TextField(default="")
|
|
|
|
corp = models.ForeignKey(EveCorporationInfo)
|
|
user = models.ForeignKey(User)
|
|
|
|
approved_denied = models.NullBooleanField(blank=True, null=True)
|
|
reviewer_user = models.ForeignKey(User, blank=True, null=True, related_name="review_user")
|
|
reviewer_character = models.ForeignKey(EveCharacter, blank=True, null=True)
|
|
reviewer_inprogress_character = models.ForeignKey(EveCharacter, blank=True, null=True,
|
|
related_name="inprogress_character")
|
|
|
|
def __str__(self):
|
|
return self.character_name + " - Application"
|
|
|
|
|
|
class HRApplicationComment(models.Model):
|
|
created_on = models.DateTimeField(auto_now_add=True)
|
|
comment = models.CharField(max_length=254, default="")
|
|
application = models.ForeignKey(HRApplication)
|
|
commenter_user = models.ForeignKey(User)
|
|
commenter_character = models.ForeignKey(EveCharacter)
|
|
|
|
def __str__(self):
|
|
return str(self.application.character_name) + " - Comment"
|