# Generated by Django 4.2.7 on 2026-05-09 09:23 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Functions', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False)), ('func_model', models.CharField(max_length=150, verbose_name='模块')), ('func_name', models.CharField(max_length=150, verbose_name='功能名称')), ('exec_sql', models.TextField(verbose_name='查询sql')), ('is_delete', models.BooleanField(default=False, verbose_name='删除标记')), ], options={ 'verbose_name': '集团功能表', 'verbose_name_plural': '集团功能表', 'db_table': 'group_func', 'db_table_comment': '集团功能表', }, ), migrations.CreateModel( name='Group', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False)), ('group_code', models.CharField(max_length=20, unique=True, verbose_name='集团编码')), ('group_name', models.CharField(max_length=150, unique=True, verbose_name='集团编码')), ('group_address', models.CharField(max_length=150, unique=True, verbose_name='集团地址')), ('cinema_count', models.IntegerField(verbose_name='影院数量')), ('is_delete', models.BooleanField(default=False, verbose_name='删除标记')), ], options={ 'verbose_name': '集团信息表', 'verbose_name_plural': '集团信息表', 'db_table': 'group_info', 'db_table_comment': '集团信息表', }, ), migrations.CreateModel( name='GroupData', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False)), ('data_count', models.IntegerField(verbose_name='数据量')), ('data_lasttime', models.DateTimeField(verbose_name='数据最后更新时间')), ('update_time', models.DateTimeField(verbose_name='数据更新时间')), ('func', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='group.functions')), ('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='group.group')), ], options={ 'verbose_name': '集团功能数据统计表', 'verbose_name_plural': '集团功能数据统计表', 'db_table': 'group_data_statistics', 'db_table_comment': '集团功能数据统计表', }, ), ]