Ekaropolus b77133fe83
All checks were successful
continuous-integration/drone/push Build is passing
Creation of Bot Interactio Table
2025-07-23 01:04:11 -06:00

28 lines
1.3 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Generated by Django 5.0.3 on 2025-07-23 06:01
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pxy_meta_pages', '0003_eventtype_facebookevent'),
]
operations = [
migrations.CreateModel(
name='BotInteraction',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('object_id', models.CharField(help_text='The Facebook post or comment ID that we commented on', max_length=100)),
('parent_object_id', models.CharField(blank=True, help_text='If this comment was on a share, the original posts ID', max_length=100, null=True)),
('prompt', models.TextField(help_text='Exact prompt sent to OpenAI for this comment')),
('bot_response', models.TextField(help_text='The text that the bot actually posted')),
('platform', models.CharField(help_text="E.g. 'Facebook' or 'Facebook (Original Post)'", max_length=50)),
('created_at', models.DateTimeField(auto_now_add=True)),
('page', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='bot_interactions', to='pxy_meta_pages.facebookpageassistant')),
],
),
]