# What this PR does Adds auth token for integrations backsync Related to https://github.com/grafana/oncall-private/issues/2542 ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] Added the relevant release notes label (see labels prefixed w/ `release:`). These labels dictate how your PR will show up in the autogenerated release notes.
31 lines
1.3 KiB
Python
31 lines
1.3 KiB
Python
# Generated by Django 4.2.10 on 2024-03-14 08:40
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('alerts', '0047_alertreceivechannel_additional_settings'),
|
|
('user_management', '0020_organization_is_grafana_labels_enabled'),
|
|
('auth_token', '0004_alter_pluginauthtoken_organization'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='IntegrationBacksyncAuthToken',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('token_key', models.CharField(db_index=True, max_length=8)),
|
|
('digest', models.CharField(max_length=128)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('revoked_at', models.DateTimeField(null=True)),
|
|
('alert_receive_channel', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='auth_tokens', to='alerts.alertreceivechannel')),
|
|
('organization', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='integration_auth_tokens', to='user_management.organization')),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
),
|
|
]
|