38045-vm/core/migrations/0001_initial.py
2026-01-31 23:33:06 +00:00

38 lines
1.5 KiB
Python

# Generated by Django 5.2.7 on 2026-01-31 23:30
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='RadioStream',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(default='Lili Records Live', max_length=200)),
('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)),
],
),
migrations.CreateModel(
name='Show',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200)),
('host', models.CharField(max_length=200)),
('description', models.TextField(blank=True)),
('image_url', models.URLField(blank=True, help_text='URL for the show image', null=True)),
('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')])),
],
),
]