update
This commit is contained in:
37
backEnd/home/migrations/0001_initial.py
Normal file
37
backEnd/home/migrations/0001_initial.py
Normal file
@@ -0,0 +1,37 @@
|
||||
# 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'],
|
||||
},
|
||||
),
|
||||
]
|
||||
0
backEnd/home/migrations/__init__.py
Normal file
0
backEnd/home/migrations/__init__.py
Normal file
BIN
backEnd/home/migrations/__pycache__/0001_initial.cpython-312.pyc
Normal file
BIN
backEnd/home/migrations/__pycache__/0001_initial.cpython-312.pyc
Normal file
Binary file not shown.
BIN
backEnd/home/migrations/__pycache__/__init__.cpython-312.pyc
Normal file
BIN
backEnd/home/migrations/__pycache__/__init__.cpython-312.pyc
Normal file
Binary file not shown.
Reference in New Issue
Block a user