# Generated by Django 3.2.15 on 2022-11-19 22:34

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('products', '0067_job_tenant'),
    ]

    operations = [
        migrations.CreateModel(
            name='MiniProgramIntegration',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('token', models.CharField(db_index=True, max_length=128, unique=True)),
                ('webhook_url', models.TextField(null=True)),
                ('batch_scope', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='integrations', to='products.codebatch')),
                ('product_scope', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='integrations', to='products.product')),
                ('tenant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='integrations', to='products.tenant')),
            ],
        ),
    ]
