# Generated by Django 2.0 on 2024-05-29 11:59 from django.db import migrations, models import django.db.models.deletion #这个也有问题 class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Admin', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('username', models.CharField(max_length=32, verbose_name='用户名')), ('password', models.CharField(max_length=64, verbose_name='密码')), ], ), migrations.CreateModel( name='Boss', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=32, verbose_name='姓名')), ('age', models.IntegerField(verbose_name='年龄')), ('img', models.CharField(max_length=128, verbose_name='头像')), ], ), migrations.CreateModel( name='City', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=32, verbose_name='名称')), ('count', models.IntegerField(verbose_name='人口')), ('img', models.FileField(max_length=128, upload_to='city/', verbose_name='Logo')), ], ), migrations.CreateModel( name='Department', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=32, verbose_name='标题')), ], ), migrations.CreateModel( name='Movie', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=16, verbose_name='电影名称')), ('depart', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app01.Department', verbose_name='电影类别')), ], ), migrations.CreateModel( name='Order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('oid', models.CharField(max_length=64, verbose_name='订单号')), ('title', models.CharField(max_length=32, verbose_name='名称')), ('price', models.IntegerField(verbose_name='价格')), ('status', models.SmallIntegerField(choices=[(1, '待支付'), (2, '已支付')], default=1, verbose_name='状态')), ('admin', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app01.Admin', verbose_name='管理员')), ], ), migrations.CreateModel( name='PrettyNum', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('mobile', models.CharField(max_length=11, verbose_name='手机号')), ('price', models.IntegerField(default=0, verbose_name='价格')), ('level', models.SmallIntegerField(choices=[(1, '1级'), (2, '2级'), (3, '3级'), (4, '4级')], default=1, verbose_name='级别')), ('status', models.SmallIntegerField(choices=[(1, '已占用'), (2, '未使用')], default=2, verbose_name='状态')), ], ), migrations.CreateModel( name='Task', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('level', models.SmallIntegerField(choices=[(1, '紧急'), (2, '重要'), (3, '临时')], default=1, verbose_name='级别')), ('title', models.CharField(max_length=64, verbose_name='标题')), ('detail', models.TextField(verbose_name='详细信息')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app01.Admin', verbose_name='负责人')), ], ), migrations.CreateModel( name='UserInfo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=16, verbose_name='姓名')), ('password', models.CharField(max_length=64, verbose_name='密码')), ('age', models.IntegerField(verbose_name='年龄')), ('account', models.DecimalField(decimal_places=2, default=0, max_digits=10, verbose_name='账户余额')), ('create_time', models.DateField(verbose_name='入职时间')), ('gender', models.SmallIntegerField(choices=[(1, '男'), (2, '女')], verbose_name='性别')), ], ), migrations.CreateModel( name='XX', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=32, verbose_name='名称')), ('image', models.FileField(upload_to='avatar/', verbose_name='头像')), ], ), ]