34 lines
1.3 KiB
Python
34 lines
1.3 KiB
Python
# Generated by Django 5.2.5 on 2025-08-20 15:47
|
|
|
|
import lib.db
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('frontend', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='FAQ',
|
|
fields=[
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
|
('internal_id', models.BigAutoField(primary_key=True, serialize=False)),
|
|
('title', models.CharField(help_text='FAQ Question/Title', max_length=200)),
|
|
('content', models.TextField(help_text='FAQ Answer/Content')),
|
|
('category', models.CharField(blank=True, help_text='Optional category for grouping', max_length=100)),
|
|
('is_active', models.BooleanField(default=True, help_text='Hide/show this FAQ entry')),
|
|
('order', models.IntegerField(default=0, help_text='Order for display (lower numbers first)')),
|
|
],
|
|
options={
|
|
'verbose_name': 'FAQ',
|
|
'verbose_name_plural': 'FAQs',
|
|
'ordering': ['order', 'title'],
|
|
},
|
|
bases=(models.Model, lib.db.SearchableMixin),
|
|
),
|
|
]
|