Implement Stage 3: Enhance content metadata and validation features
- Added entity metadata fields to the Tasks model, including entity_type, taxonomy, and cluster_role. - Updated CandidateEngine to prioritize content relevance based on cluster mappings. - Introduced metadata completeness scoring in ContentAnalyzer. - Enhanced validation services to check for entity type and mapping completeness. - Updated frontend components to display and validate new metadata fields. - Implemented API endpoints for content validation and metadata persistence. - Migrated existing data to populate new metadata fields for Tasks and Content.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# Generated migration to fix tenant_id column name
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('billing', '0002_rename_tenant_to_account'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
# Rename the database column from account_id to tenant_id to match model's db_column
|
||||
migrations.RunSQL(
|
||||
sql="ALTER TABLE igny8_credit_transactions RENAME COLUMN account_id TO tenant_id;",
|
||||
reverse_sql="ALTER TABLE igny8_credit_transactions RENAME COLUMN tenant_id TO account_id;"
|
||||
),
|
||||
migrations.RunSQL(
|
||||
sql="ALTER TABLE igny8_credit_usage_logs RENAME COLUMN account_id TO tenant_id;",
|
||||
reverse_sql="ALTER TABLE igny8_credit_usage_logs RENAME COLUMN tenant_id TO account_id;"
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user