All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Django app with Item model (games/books/films/other categories), CRUD views, and login-required access. Login page at /accounts/login/ uses custom dark-themed template consistent with the site design. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
33 lines
1.4 KiB
Python
33 lines
1.4 KiB
Python
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = []
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Item',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('category', models.CharField(choices=[('games', 'Games'), ('books', 'Books'), ('films', 'Films'), ('other', 'Other')], max_length=10)),
|
|
('name', models.CharField(max_length=200)),
|
|
('progress_percent', models.FloatField(default=0.0)),
|
|
('favorite', models.BooleanField(default=False)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
|
('hours_played', models.FloatField(blank=True, null=True)),
|
|
('total_hours', models.FloatField(blank=True, null=True)),
|
|
('pages_read', models.IntegerField(blank=True, null=True)),
|
|
('total_pages', models.IntegerField(blank=True, null=True)),
|
|
('watched', models.BooleanField(blank=True, null=True)),
|
|
('duration_minutes', models.IntegerField(blank=True, null=True)),
|
|
],
|
|
options={
|
|
'ordering': ['-favorite', 'name'],
|
|
},
|
|
),
|
|
]
|