mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-12-06 12:51:41 +01:00
42 lines
2.6 KiB
Python
42 lines
2.6 KiB
Python
# Generated by Django 5.1.6 on 2025-03-05 00:46
|
|
|
|
import django.db.models.deletion
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
replaces = [('mumble', '0001_squashed_0011_auto_20201011_1009'), ('mumble', '0012_mumble_client_info'), ('mumble', '0013_connection_history'), ('mumble', '0014_alter_mumbleuser_certhash_alter_mumbleuser_groups_and_more')]
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('auth', '__first__'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='MumbleUser',
|
|
fields=[
|
|
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='mumble', serialize=False, to=settings.AUTH_USER_MODEL)),
|
|
('username', models.CharField(max_length=254, unique=True)),
|
|
('pwhash', models.CharField(max_length=90)),
|
|
('groups', models.TextField(blank=True, default='')),
|
|
('hashfn', models.CharField(default='sha1', max_length=20)),
|
|
('display_name', models.CharField(max_length=254, unique=True)),
|
|
('certhash', models.CharField(blank=True, default='', editable=False, help_text='Hash of Mumble client certificate as presented when user authenticates', max_length=254, verbose_name='Certificate Hash')),
|
|
('last_connect', models.DateTimeField(blank=True, editable=False, help_text='Timestamp of the users Last Connection to Mumble', max_length=254, null=True, verbose_name='Last Connection')),
|
|
('last_disconnect', models.DateTimeField(blank=True, editable=False, help_text='Timestamp of the users Last Disconnection to Mumble', max_length=254, null=True, verbose_name='Last Disconnection')),
|
|
('release', models.TextField(blank=True, default='', editable=False, help_text='Client release. For official releases, this equals the version. For snapshots and git compiles, this will be something else.', max_length=254, verbose_name='Mumble Release')),
|
|
('version', models.IntegerField(blank=True, editable=False, help_text='Client version. Major version in upper 16 bits, followed by 8 bits of minor version and 8 bits of patchlevel. Version 1.2.3 = 0x010203.', null=True, verbose_name='Mumble Version')),
|
|
],
|
|
options={
|
|
'default_permissions': (),
|
|
'permissions': (
|
|
('access_mumble', 'Can access the Mumble service'),
|
|
('view_connection_history', 'Can access the connection history of the Mumble service')),
|
|
},
|
|
),
|
|
]
|