55 lines
1.6 KiB
Python
55 lines
1.6 KiB
Python
# Generated by Django 5.0.3 on 2025-01-25 04:06
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
("pxy_openai", "0001_initial"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="FacebookPageAssistant",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
(
|
|
"page_id",
|
|
models.CharField(
|
|
help_text="Unique ID of the Facebook page",
|
|
max_length=100,
|
|
unique=True,
|
|
),
|
|
),
|
|
(
|
|
"page_name",
|
|
models.CharField(
|
|
help_text="Name of the Facebook page", max_length=200
|
|
),
|
|
),
|
|
("created_at", models.DateTimeField(auto_now_add=True)),
|
|
("updated_at", models.DateTimeField(auto_now=True)),
|
|
(
|
|
"assistant",
|
|
models.ForeignKey(
|
|
on_delete=django.db.models.deletion.CASCADE,
|
|
related_name="facebook_pages",
|
|
to="pxy_openai.openaiassistant",
|
|
),
|
|
),
|
|
],
|
|
),
|
|
]
|