recipe links

This commit is contained in:
Joren de Graaf
2026-10-23 14:30:58 +02:00
parent 5b986134be
commit 4d76a2bc9c
52 changed files with 2698 additions and 19 deletions
@@ -0,0 +1,25 @@
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
operations = [
migrations.CreateModel(
name='HomeAssistantConnection',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('base_url', models.URLField(max_length=500)),
('encrypted_token', models.TextField()),
('grocery_entity_id', models.CharField(blank=True, max_length=255)),
('entities', models.JSONField(blank=True, default=list)),
('version', models.CharField(blank=True, max_length=100)),
('last_tested_at', models.DateTimeField(blank=True, null=True)),
('last_error', models.CharField(blank=True, max_length=255)),
('updated_at', models.DateTimeField(auto_now=True)),
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='home_assistant_connection', to=settings.AUTH_USER_MODEL)),
],
),
]