2
0

models.py 495 B

123456789101112
  1. from django.db import models
  2. class MqttService(models.Model):
  3. id = models.IntegerField(db_column='id',primary_key=True)
  4. nome = models.CharField(db_column='name',max_length=128)
  5. command = models.CharField(db_column='command',max_length=256)
  6. server = models.CharField(db_column='server',max_length=128)
  7. internal = models.BooleanField(db_column='internal',default=0)
  8. topic = models.CharField(db_column='topic',max_length=64)
  9. nota = models.TextField(db_column='nota')