You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jumpserver/apps/rbac/migrations/0002_auto_20210929_1409.py

86 lines
2.4 KiB

# Generated by Django 4.1.13 on 2024-05-09 03:16
import common.db.models
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),
('rbac', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='rolebinding',
name='user',
field=models.ForeignKey(on_delete=common.db.models.CASCADE_SIGNAL_SKIP, related_name='role_bindings', to=settings.AUTH_USER_MODEL, verbose_name='User'),
),
migrations.AddField(
model_name='role',
name='permissions',
field=models.ManyToManyField(blank=True, related_name='roles', to='rbac.permission', verbose_name='Permissions'),
),
migrations.CreateModel(
name='OrgRole',
fields=[
],
options={
'verbose_name': 'Organization role',
'proxy': True,
'indexes': [],
'constraints': [],
},
bases=('rbac.role',),
),
migrations.CreateModel(
name='OrgRoleBinding',
fields=[
],
options={
'verbose_name': 'Organization role binding',
'proxy': True,
'indexes': [],
'constraints': [],
},
bases=('rbac.rolebinding',),
),
migrations.CreateModel(
name='SystemRole',
fields=[
],
options={
'verbose_name': 'System role',
'proxy': True,
'indexes': [],
'constraints': [],
},
bases=('rbac.role',),
),
migrations.CreateModel(
name='SystemRoleBinding',
fields=[
],
options={
'verbose_name': 'System role binding',
'proxy': True,
'indexes': [],
'constraints': [],
},
bases=('rbac.rolebinding',),
),
migrations.AlterUniqueTogether(
name='rolebinding',
unique_together={('user', 'role', 'org')},
),
migrations.AlterUniqueTogether(
name='role',
unique_together={('name', 'scope')},
),
]