mirror of
https://github.com/nikdoof/limetime.git
synced 2025-12-13 09:42:26 +00:00
24 lines
539 B
Python
24 lines
539 B
Python
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' |