Commit 3ad00df0 authored by Pierre-antoine Comby's avatar Pierre-antoine Comby
Browse files

update models

parent 80653b59
......@@ -66,6 +66,7 @@ class Landmark(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
active_flag = models.BooleanField()
pos = models.PointField()
alt = models.IntegerField()
tag = models.CharField(max_length=255)
#relations
floor = models.ForeignKey(Floor,on_delete=models.PROTECT)
......@@ -95,11 +96,9 @@ class Measure(models.Model):
pass
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
moment = models.DateTimeField()
mac_adress = models.CharField(max_length=255)
#relations
filelink = models.ForeignKey(FileMeasure,on_delete=models.PROTECT)
emitter_type = models.ForeignKey(ContentType,on_delete=models.PROTECT)
emitter_id = models.PositiveIntegerField()
emitter = GenericForeignKey('emitter_type','emitter_id')
level = models.IntegerField()
count = models.IntegerField()
pass
......@@ -107,7 +106,11 @@ class Measure(models.Model):
class WifiMeasure(Measure):
frequency = models.IntegerField()
capabilities = models.CharField(max_length=255)
ssid = models.CharField(max_length=255)
pass
class BtMeasure(Measure):
frame_content = models.CharField(max_length=255)
name = models.CharField(max_length=255)
namespace = models.CharField(max_length=255)
instance = models.CharField(max_length=255)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment