mirror of
https://github.com/nikdoof/limetime.git
synced 2025-12-20 14:09:24 +00:00
Initial import of codebase
This commit is contained in:
24
app/timer/models/owners.py
Normal file
24
app/timer/models/owners.py
Normal file
@@ -0,0 +1,24 @@
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Owner(models.Model):
|
||||
id = models.BigIntegerField('Owner ID', primary_key=True)
|
||||
name = models.CharField('Owner Name', max_length=200)
|
||||
|
||||
class Meta:
|
||||
app_label = 'timer'
|
||||
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
|
||||
class Alliance(Owner):
|
||||
|
||||
class Meta:
|
||||
app_label = 'timer'
|
||||
|
||||
class Corporation(Owner):
|
||||
"""Represents a EVE Corporation """
|
||||
alliance = models.ForeignKey(Alliance, related_name='corporations', null=True)
|
||||
|
||||
class Meta:
|
||||
app_label = 'timer'
|
||||
Reference in New Issue
Block a user