changes
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
27
app/migrations/0354_group_rights.py
Normal file
27
app/migrations/0354_group_rights.py
Normal file
@@ -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')},
|
||||||
|
},
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -1114,6 +1114,16 @@ class Dealer_Rights(models.Model):
|
|||||||
unique_together = ('setting', 'user')
|
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):
|
class Account_Setting(models.Model):
|
||||||
category = models.CharField(max_length=100, null=False)
|
category = models.CharField(max_length=100, null=False)
|
||||||
classify = models.CharField(max_length=100, null=False)
|
classify = models.CharField(max_length=100, null=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user