This commit is contained in:
alorig
2025-11-18 07:13:34 +05:00
parent 51c3986e01
commit 2074191eee
17 changed files with 2578 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
# Generated manually for Phase 8: Universal Content Types
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('writer', '0010_make_content_task_nullable'),
]
operations = [
migrations.AddField(
model_name='content',
name='entity_type',
field=models.CharField(
choices=[
('blog_post', 'Blog Post'),
('article', 'Article'),
('product', 'Product'),
('service', 'Service Page'),
('taxonomy', 'Taxonomy Page'),
('page', 'Page'),
],
db_index=True,
default='blog_post',
help_text='Type of content entity',
max_length=50
),
),
migrations.AddField(
model_name='content',
name='json_blocks',
field=models.JSONField(
blank=True,
default=list,
help_text='Structured content blocks (for products, services, taxonomies)'
),
),
migrations.AddField(
model_name='content',
name='structure_data',
field=models.JSONField(
blank=True,
default=dict,
help_text='Content structure data (metadata, schema, etc.)'
),
),
migrations.AddIndex(
model_name='content',
index=models.Index(fields=['entity_type'], name='igny8_conte_entity__idx'),
),
]