text: # Generated by Django 3.0.2 on 2020-04-11 17:07
  
  from django.db import migrations, models
  import django.utils.timezone
  import model_utils.fields
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('auth', '0011_update_proxy_permissions'),
          ('users', '0003_menu'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='MenuAuthGroup',
              fields=[
                  ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
                  ('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False, verbose_name='modified')),
                  ('is_removed', models.BooleanField(default=False)),
                  ('read', models.BooleanField(default=True)),
                  ('write', models.BooleanField(default=True)),
                  ('auth_group', models.ForeignKey(default=0, on_delete=models.SET(0), to='auth.Group')),
                  ('menu', models.ForeignKey(default=0, on_delete=models.SET(0), to='users.Menu')),
              ],
              options={
                  'db_table': 'users_menu_auth_groups',
              },
          ),
          migrations.AddConstraint(
              model_name='menuauthgroup',
              constraint=models.UniqueConstraint(fields=('auth_group', 'menu'), condition=models.Q(is_removed=False), name='auth_group_menu'),
          ),
          migrations.AddField(
              model_name='menu',
              name='auth_groups',
              field=models.ManyToManyField(related_name='auth_groups', through='users.MenuAuthGroup', to='auth.Group'),
          ),
      ]
  