Files
GNX-WEB/backEnd/home/migrations/0001_initial.py
Iliyan Angelov 136f75a859 update
2025-11-24 08:18:18 +02:00

38 lines
1.8 KiB
Python

# Generated by Django 5.2.8 on 2025-11-24 04:24
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='HomeBanner',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('icon', models.CharField(help_text="Badge icon class (e.g., 'fa-solid fa-building')", max_length=50)),
('badge', models.CharField(help_text='Badge text', max_length=100)),
('heading', models.CharField(help_text='Main heading text', max_length=200)),
('highlight', models.CharField(blank=True, help_text='Highlighted text (gradient text)', max_length=100)),
('subheading', models.CharField(blank=True, help_text='Subheading text', max_length=200)),
('description', models.TextField(help_text='Banner description')),
('button_text', models.CharField(default='Learn More', help_text='Primary CTA button text', max_length=100)),
('button_url', models.CharField(default='#', help_text='Primary CTA button URL', max_length=200)),
('display_order', models.PositiveIntegerField(default=0, help_text='Order for displaying banners in carousel')),
('is_active', models.BooleanField(default=True, help_text='Whether this banner is active')),
('created_at', models.DateTimeField(auto_now_add=True)),
('updated_at', models.DateTimeField(auto_now=True)),
],
options={
'verbose_name': 'Home Banner',
'verbose_name_plural': 'Home Banners',
'ordering': ['display_order', 'created_at'],
},
),
]