diff --git a/api/__pycache__/settings.cpython-312.pyc b/api/__pycache__/settings.cpython-312.pyc index 7af70174..cbaab4aa 100644 Binary files a/api/__pycache__/settings.cpython-312.pyc and b/api/__pycache__/settings.cpython-312.pyc differ diff --git a/app/__pycache__/cleardata.cpython-312.pyc b/app/__pycache__/cleardata.cpython-312.pyc index b566b44b..a88ed63a 100644 Binary files a/app/__pycache__/cleardata.cpython-312.pyc and b/app/__pycache__/cleardata.cpython-312.pyc differ diff --git a/app/__pycache__/models.cpython-312.pyc b/app/__pycache__/models.cpython-312.pyc index 8c49e088..44da6259 100644 Binary files a/app/__pycache__/models.cpython-312.pyc and b/app/__pycache__/models.cpython-312.pyc differ diff --git a/app/__pycache__/views.cpython-312.pyc b/app/__pycache__/views.cpython-312.pyc index 96658813..e9fd508b 100644 Binary files a/app/__pycache__/views.cpython-312.pyc and b/app/__pycache__/views.cpython-312.pyc differ diff --git a/app/__pycache__/workflow_utils.cpython-312.pyc b/app/__pycache__/workflow_utils.cpython-312.pyc index 6b46abc6..1b6b297e 100644 Binary files a/app/__pycache__/workflow_utils.cpython-312.pyc and b/app/__pycache__/workflow_utils.cpython-312.pyc differ diff --git a/app/migrations/0354_group_rights.py b/app/migrations/0354_group_rights.py new file mode 100644 index 00000000..d57cfea2 --- /dev/null +++ b/app/migrations/0354_group_rights.py @@ -0,0 +1,27 @@ +# Generated by Django 5.1.7 on 2026-01-12 02:38 + +import django.db.models.deletion +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('app', '0353_remove_organization_tax_code'), + ] + + operations = [ + migrations.CreateModel( + name='Group_Rights', + fields=[ + ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('create_time', models.DateTimeField(auto_now_add=True, null=True)), + ('group', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.user_type')), + ('setting', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.biz_setting')), + ], + options={ + 'db_table': 'group_rights', + 'unique_together': {('setting', 'group')}, + }, + ), + ] diff --git a/app/models.py b/app/models.py index 9cbdfedd..09fc7f16 100644 --- a/app/models.py +++ b/app/models.py @@ -1114,6 +1114,16 @@ class Dealer_Rights(models.Model): unique_together = ('setting', 'user') +class Group_Rights(models.Model): + setting = models.ForeignKey(Biz_Setting, null=False, related_name='+', on_delete=models.PROTECT) + group = models.ForeignKey(User_Type, null=False, related_name='+', on_delete=models.PROTECT) + create_time = models.DateTimeField(null=True, auto_now_add=True) + + class Meta: + db_table = 'group_rights' + unique_together = ('setting', 'group') + + class Account_Setting(models.Model): category = models.CharField(max_length=100, null=False) classify = models.CharField(max_length=100, null=False)