class OrderInfo(models.Model): time = models.StringField(max_length=50) place = models.StringField(max_length=50) methods = models.StringField(max_length=50) rd3 = models.StringField(max_length=50) def __str__(self): return self.id
class SessionInfo(models.Model): rd3 = models.StringField(max_length=50) state = models.StringField(max_length=50) session_key = models.StringField(max_length=50) openid = models.StringField(max_length=50) def __str__(self): return self._id
class UserInfo(models.Model): id = models.StringField(max_length=50) nickName = models.StringField(max_length=50) gender = models.StringField(max_length=50) language = models.StringField(max_length=50) city = models.StringField(max_length=50) province = models.StringField(max_length=50) country = models.StringField(max_length=50) vatarUrl = models.StringField(max_length=50) def __str__(self): return self.id
class Organisation(models.Model): name = models.StringField() address = models.StringField() type = models.StringField()
class reader(models.Model): name = models.StringField() location = models.ForeignKey(location) ipaddr = models.StringField() install_date = models.StringField()
class action(models.Model): name = models.StringField() open_relay = model.BooleanFiled() open_time = model.IntegerFiled()
class location(models.Model): name = models.StringField() longitude = models.DecimalField() latitude = models.DecimalField()
class access_group(models.Model): name = models.StringField() location = models.ForeignKey(location) reader = models.ForeignKey(reader) action = models.ForeignKey(action)
class relay(models.Model): name = models.StringField() location = models.ForeignKey(location) ipaddr = models.StringField() install_date = models.StringField() paired_reader = models.ForeignKey(reader, on_delete=models.CASCADE)
class Player(models.Model): name = models.StringField(max_length=30) school = models.StringField(max_length=30) classroom = models.StringField(max_length=30)