mirror of https://github.com/jumpserver/jumpserver
43 lines
2.1 KiB
Python
43 lines
2.1 KiB
Python
# Generated by Django 2.1.7 on 2019-05-20 11:04
|
|
|
|
import common.db.fields
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import uuid
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('assets', '0026_auto_20190325_2035'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='RemoteApp',
|
|
fields=[
|
|
('org_id', models.CharField(blank=True, db_index=True, default='', max_length=36, verbose_name='Organization')),
|
|
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
|
|
('name', models.CharField(max_length=128, verbose_name='Name')),
|
|
('type', models.CharField(choices=[('Browser', (('chrome', 'Chrome'),)), ('Database tools', (('mysql_workbench', 'MySQL Workbench'),)), ('Virtualization tools', (('vmware_client', 'vSphere Client'),)), ('custom', 'Custom')], default='chrome', max_length=128, verbose_name='App type')),
|
|
('path', models.CharField(max_length=128, verbose_name='App path')),
|
|
('params', common.db.fields.EncryptJsonDictTextField(blank=True, default={}, max_length=4096, null=True, verbose_name='Parameters')),
|
|
('created_by', models.CharField(blank=True, max_length=32, null=True, verbose_name='Created by')),
|
|
('date_created', models.DateTimeField(auto_now_add=True, null=True, verbose_name='Date created')),
|
|
('comment', models.TextField(blank=True, default='', max_length=128, verbose_name='Comment')),
|
|
('asset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assets.Asset', verbose_name='Asset')),
|
|
('system_user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='assets.SystemUser', verbose_name='System user')),
|
|
],
|
|
options={
|
|
'verbose_name': 'RemoteApp',
|
|
'ordering': ('name',),
|
|
},
|
|
),
|
|
migrations.AlterUniqueTogether(
|
|
name='remoteapp',
|
|
unique_together={('org_id', 'name')},
|
|
),
|
|
]
|