19 lines
699 B
Python
19 lines
699 B
Python
|
from django.db import models
|
||
|
|
||
|
|
||
|
class Member(models.Model):
|
||
|
# TODO: this is only a partial set of fields, may want to expand
|
||
|
uid = models.CharField(primary_key=True, max_length=24)
|
||
|
year_of_birth = models.TextField(db_column='Year of Birth', blank=True, null=True)
|
||
|
account_name = models.TextField(db_column='Account Name', blank=True, null=True)
|
||
|
first_name = models.TextField(db_column='First Name', blank=True, null=True)
|
||
|
last_name = models.TextField(db_column='Last Name', blank=True, null=True)
|
||
|
|
||
|
def __str__(self):
|
||
|
return f"{self.account_name}"
|
||
|
|
||
|
class Meta:
|
||
|
managed = False
|
||
|
db_table = 'members'
|
||
|
ordering = ('first_name', 'last_name')
|