Skip to content

Instantly share code, notes, and snippets.

@elcolie
Created August 17, 2017 16:34
Show Gist options
  • Save elcolie/7bb56c286afacadff63eccae94bda713 to your computer and use it in GitHub Desktop.
Save elcolie/7bb56c286afacadff63eccae94bda713 to your computer and use it in GitHub Desktop.
class Location(models.Model):
mac = models.CharField(max_length=17)
timestamp = models.DateTimeField()
floor_number = models.PositiveSmallIntegerField()
x = models.IntegerField()
y = models.IntegerField()
located_inside = models.BooleanField()
zones = JSONField()
class MemberToMac(models.Model):
mac = models.CharField(max_length=17)
imc = models.CharField(max_length=50) # Anonymous mac address
created_at = models.DateTimeField(auto_now_add=True)
class MemberProfile(models.Model):
imc = models.CharField(max_length=50, null=True, db_index=True) # Anonymous mac address
content = models.TextField(null=True) # TODO Remove null=True # pyrad shoot
pin_value = models.CharField(max_length=30, null=True) # pyrad shoot
created_at = models.DateTimeField(auto_now_add=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment