bloombase/plants/migrations/0007_plantcardphoto.py
Stephan Kerkman 4132406f15 feat: add PlantCardPhoto model
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-28 21:38:15 +02:00

26 lines
861 B
Python

# Generated by Django 5.2.1 on 2026-05-28 19:37
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('plants', '0006_species_vpc_raw'),
]
operations = [
migrations.CreateModel(
name='PlantCardPhoto',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('image', models.ImageField(upload_to='plants/cards/')),
('uploaded_at', models.DateTimeField(auto_now_add=True)),
('plant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='card_photos', to='plants.plant')),
],
options={
'ordering': ['uploaded_at'],
},
),
]