2022-07-11 10:09:06 +00:00
|
|
|
# Generated by Django 3.2.12 on 2022-07-05 11:40
|
|
|
|
|
2023-06-28 07:01:25 +00:00
|
|
|
import django.db.models.deletion
|
2022-07-11 10:09:06 +00:00
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
2023-06-28 07:01:25 +00:00
|
|
|
|
|
|
|
import authentication.models
|
2022-07-11 10:09:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
|
|
('applications', '0021_auto_20220629_1826'),
|
|
|
|
('assets', '0091_auto_20220629_1826'),
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
|
|
('authentication', '0010_temptoken'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='connectiontoken',
|
|
|
|
name='application',
|
2023-06-28 07:01:25 +00:00
|
|
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL,
|
|
|
|
related_name='connection_tokens', to='applications.application',
|
|
|
|
verbose_name='Application'),
|
2022-07-11 10:09:06 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='connectiontoken',
|
|
|
|
name='application_display',
|
|
|
|
field=models.CharField(default='', max_length=128, verbose_name='Application display'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='connectiontoken',
|
|
|
|
name='asset',
|
2023-06-28 07:01:25 +00:00
|
|
|
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'),
|
2022-07-11 10:09:06 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='connectiontoken',
|
|
|
|
name='asset_display',
|
|
|
|
field=models.CharField(default='', max_length=128, verbose_name='Asset display'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='connectiontoken',
|
|
|
|
name='date_expired',
|
|
|
|
field=models.DateTimeField(default=authentication.models.date_expired_default, verbose_name='Date expired'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='connectiontoken',
|
|
|
|
name='org_id',
|
|
|
|
field=models.CharField(blank=True, db_index=True, default='', max_length=36, verbose_name='Organization'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='connectiontoken',
|
|
|
|
name='secret',
|
|
|
|
field=models.CharField(default='', max_length=64, verbose_name='Secret'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='connectiontoken',
|
|
|
|
name='system_user',
|
2023-06-28 07:01:25 +00:00
|
|
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL,
|
|
|
|
related_name='connection_tokens', to='assets.systemuser',
|
|
|
|
verbose_name='System user'),
|
2022-07-11 10:09:06 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='connectiontoken',
|
|
|
|
name='system_user_display',
|
|
|
|
field=models.CharField(default='', max_length=128, verbose_name='System user display'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='connectiontoken',
|
|
|
|
name='type',
|
2023-06-28 07:01:25 +00:00
|
|
|
field=models.CharField(choices=[('asset', 'Asset'), ('application', 'Application')], default='asset',
|
|
|
|
max_length=16, verbose_name='Type'),
|
2022-07-11 10:09:06 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='connectiontoken',
|
|
|
|
name='user',
|
2023-06-28 07:01:25 +00:00
|
|
|
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'),
|
2022-07-11 10:09:06 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='connectiontoken',
|
|
|
|
name='user_display',
|
|
|
|
field=models.CharField(default='', max_length=128, verbose_name='User display'),
|
|
|
|
),
|
|
|
|
migrations.AlterModelOptions(
|
|
|
|
name='connectiontoken',
|
2023-06-28 07:01:25 +00:00
|
|
|
options={'ordering': ('-date_expired',),
|
|
|
|
'permissions': [('view_connectiontokensecret', 'Can view connection token secret')],
|
|
|
|
'verbose_name': 'Connection token'},
|
2022-07-11 10:09:06 +00:00
|
|
|
),
|
|
|
|
]
|