Files
plugins/openedx-tenant-api/openedx_tenant_api/migrations/0001_initial.py
DamarKusumo 2b7027e37d Add openedx-tenant-api plugin
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-10 08:20:57 +07:00

35 lines
1.4 KiB
Python

# Generated by Django 5.2.11 on 2026-03-12 04:36
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='TenantProvisioningLog',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('tenant_name', models.CharField(db_index=True, max_length=255)),
('external_key', models.CharField(max_length=255)),
('created_at', models.DateTimeField(auto_now_add=True)),
('status', models.CharField(choices=[('success', 'Success'), ('failed', 'Failed')], max_length=50)),
('error_message', models.TextField(blank=True)),
('tenant_config_id', models.IntegerField(blank=True, null=True)),
('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
],
options={
'ordering': ['-created_at'],
'indexes': [models.Index(fields=['tenant_name', 'created_at'], name='openedx_ten_tenant__4f322f_idx')],
},
),
]