2024-05-11 03:22:01 +00:00
|
|
|
# Generated by Django 4.1.13 on 2024-05-09 03:16
|
2019-08-21 12:27:21 +00:00
|
|
|
|
2024-05-11 03:22:01 +00:00
|
|
|
import common.db.models
|
|
|
|
from django.conf import settings
|
2019-08-21 12:27:21 +00:00
|
|
|
from django.db import migrations, models
|
2024-05-11 03:22:01 +00:00
|
|
|
import django.db.models.deletion
|
2019-08-21 12:27:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
2024-05-11 03:22:01 +00:00
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
2019-08-21 12:27:21 +00:00
|
|
|
dependencies = [
|
2024-05-11 03:22:01 +00:00
|
|
|
('assets', '0002_auto_20180105_1807'),
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
|
|
('tickets', '0001_initial'),
|
2019-08-21 12:27:21 +00:00
|
|
|
('authentication', '0001_initial'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.AddField(
|
2024-05-11 03:22:01 +00:00
|
|
|
model_name='ssotoken',
|
|
|
|
name='user',
|
|
|
|
field=models.ForeignKey(db_constraint=False, on_delete=common.db.models.CASCADE_SIGNAL_SKIP, to=settings.AUTH_USER_MODEL, verbose_name='User'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='privatetoken',
|
|
|
|
name='user',
|
|
|
|
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='auth_token', to=settings.AUTH_USER_MODEL, verbose_name='User'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='passkey',
|
|
|
|
name='user',
|
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='connectiontoken',
|
|
|
|
name='asset',
|
|
|
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='connection_tokens', to='assets.asset', verbose_name='Asset'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='connectiontoken',
|
|
|
|
name='from_ticket',
|
|
|
|
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='connection_token', to='tickets.applyloginassetticket', verbose_name='From ticket'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='connectiontoken',
|
|
|
|
name='user',
|
|
|
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='connection_tokens', to=settings.AUTH_USER_MODEL, verbose_name='User'),
|
2019-08-21 12:27:21 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='accesskey',
|
2024-05-11 03:22:01 +00:00
|
|
|
name='user',
|
|
|
|
field=models.ForeignKey(on_delete=common.db.models.CASCADE_SIGNAL_SKIP, related_name='access_keys', to=settings.AUTH_USER_MODEL, verbose_name='User'),
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='SuperConnectionToken',
|
|
|
|
fields=[
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
'verbose_name': 'Super connection token',
|
|
|
|
'permissions': [('view_superconnectiontokensecret', 'Can view super connection token secret')],
|
|
|
|
'proxy': True,
|
|
|
|
'indexes': [],
|
|
|
|
'constraints': [],
|
|
|
|
},
|
|
|
|
bases=('authentication.connectiontoken',),
|
2019-08-21 12:27:21 +00:00
|
|
|
),
|
|
|
|
]
|