Пример #1
0
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
Пример #2
0
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
Пример #3
0
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
Пример #4
0
class Organisation(models.Model):
    name = models.StringField()
    address = models.StringField()
    type = models.StringField()
Пример #5
0
class reader(models.Model):
    name = models.StringField()
    location = models.ForeignKey(location)
    ipaddr = models.StringField()
    install_date = models.StringField()
Пример #6
0
class action(models.Model):
    name = models.StringField()
    open_relay = model.BooleanFiled()
    open_time = model.IntegerFiled()
Пример #7
0
class location(models.Model):
    name = models.StringField()
    longitude = models.DecimalField()
    latitude = models.DecimalField()
Пример #8
0
class access_group(models.Model):
    name = models.StringField()
    location = models.ForeignKey(location)
    reader = models.ForeignKey(reader)
    action = models.ForeignKey(action)
Пример #9
0
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)
Пример #10
0
class Player(models.Model):
	name = models.StringField(max_length=30)
	school = models.StringField(max_length=30)
	classroom = models.StringField(max_length=30)