models.py 499 B

1234567891011121314151617181920212223
  1. from django.db import models
  2. # Create your models here.
  3. class ChannelSettings(models.Model):
  4. id = models.AutoField(
  5. primary_key = True,
  6. )
  7. channel = models.ForeignKey(
  8. "stats.Channel",
  9. on_delete = models.CASCADE,
  10. to_field = "channel_id",
  11. db_column = "channel",
  12. )
  13. interact = models.BooleanField(
  14. default = False,
  15. help_text = "Allow the robot to speak and interact with users."
  16. )
  17. class Meta:
  18. managed = False
  19. db_table = "channel_settings"
  20. #verbose_name_plural = "accounts"