All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
New dailystone app with 207 minerals scraped from Wikipedia. Each day displays a different mineral with photos, formula, properties, description, and history. Page theme color matches the mineral's typical appearance. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39 lines
1.6 KiB
Python
39 lines
1.6 KiB
Python
# Generated by Django 6.0.3 on 2026-03-30 12:19
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Mineral',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=200, unique=True)),
|
|
('formula', models.CharField(blank=True, max_length=200)),
|
|
('category', models.CharField(blank=True, max_length=200)),
|
|
('crystal_system', models.CharField(blank=True, max_length=200)),
|
|
('mohs_hardness', models.CharField(blank=True, max_length=50)),
|
|
('luster', models.CharField(blank=True, max_length=200)),
|
|
('streak', models.CharField(blank=True, max_length=200)),
|
|
('specific_gravity', models.CharField(blank=True, max_length=100)),
|
|
('color_description', models.CharField(blank=True, max_length=300)),
|
|
('color_hex', models.CharField(default='#6b7280', max_length=7)),
|
|
('description', models.TextField(blank=True)),
|
|
('history', models.TextField(blank=True)),
|
|
('image_urls', models.JSONField(default=list)),
|
|
('wikipedia_url', models.URLField(blank=True, max_length=500)),
|
|
('day_of_year', models.IntegerField(blank=True, null=True, unique=True)),
|
|
],
|
|
options={
|
|
'ordering': ['day_of_year'],
|
|
},
|
|
),
|
|
]
|