Created
August 17, 2017 16:34
-
-
Save elcolie/7bb56c286afacadff63eccae94bda713 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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