from django.db import models class RadioStream(models.Model): name = models.CharField(max_length=200, default="Lili Records Live") url = models.URLField(help_text="The URL of the live audio stream (e.g., Icecast/Shoutcast URL)") is_active = models.BooleanField(default=True) created_at = models.DateTimeField(auto_now_add=True) def __str__(self): return self.name class Show(models.Model): title = models.CharField(max_length=200) host = models.CharField(max_length=200) description = models.TextField(blank=True) image_url = models.URLField(blank=True, null=True, help_text="URL for the show image") start_time = models.TimeField() end_time = models.TimeField() weekday = models.IntegerField(choices=[ (0, 'Monday'), (1, 'Tuesday'), (2, 'Wednesday'), (3, 'Thursday'), (4, 'Friday'), (5, 'Saturday'), (6, 'Sunday') ]) def __str__(self): return f"{self.title} with {self.host}"