class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='File', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50)), ('note', models.TextField()), ('timestamp', models.DateTimeField(auto_now_add=True)), ('slug', models.SlugField(blank=True, null=True, unique=True)), ('file', models.FileField(upload_to=data.models.upload_location)), ('user', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-timestamp'], }, ), ]
class Migration(migrations.Migration): dependencies = [ ('data', '0007_auto_20171026_1823'), ] operations = [ migrations.RemoveField( model_name='doctor', name='situation', ), migrations.AlterField( model_name='medicine_apresentation', name='ggrem', field=models.CharField(max_length=15, verbose_name='Código Regulação Econômica'), ), migrations.AlterField( model_name='reservation', name='date', field=models.DateField( verbose_name='Data de Vencimento do Remédio'), ), migrations.AlterField( model_name='reservation', name='prescription', field=models.FileField( upload_to=data.models.prescription_file_upload, verbose_name='Prescrição Médica'), ), ]
class Migration(migrations.Migration): dependencies = [ ('data', '0009_auto_20200310_1448'), ] operations = [ migrations.AlterField( model_name='data', name='File', field=models.FileField(upload_to=data.models.user_directory_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('data', '0001_initial'), ] operations = [ migrations.AlterField( model_name='note', name='image', field=models.FileField(upload_to=data.models.path_file_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('data', '0003_skill_icon'), ] operations = [ migrations.AlterField( model_name='skill', name='icon', field=models.FileField(blank=True, null=True, upload_to=data.models.skill_svg, verbose_name='SVG 아이콘파일'), ), ]
class Migration(migrations.Migration): dependencies = [ ('data', '0009_auto_20180102_1810'), ] operations = [ migrations.RenameField( model_name='education', old_name='acronym_phD', new_name='acronym_phd', ), migrations.RenameField( model_name='education', old_name='end_year_phD', new_name='end_year_phd', ), migrations.RenameField( model_name='education', old_name='major_field_phD', new_name='major_field_phd', ), migrations.RenameField( model_name='education', old_name='minor_field_phD', new_name='minor_field_phd', ), migrations.RenameField( model_name='education', old_name='start_year_phD', new_name='start_year_phd', ), migrations.RenameField( model_name='education', old_name='university_phD', new_name='university_phd', ), migrations.AlterField( model_name='personalinfo', name='image', field=models.FileField(blank=True, upload_to=data.models.user_directory_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('data', '0014_auto_20201029_1448'), ] operations = [ migrations.CreateModel( name='DiagnosticCalibration', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('vinput', data.models.MyArrayField()), ('output', data.models.MyArrayField()), ('resolution', models.FloatField(blank=True, null=True)), ('temporalresolution', models.FloatField(blank=True, null=True)), ('description', models.TextField()), ('date', models.DateTimeField(null=True)), ('expiration', models.DateField(null=True)), ('datasheet', models.FileField(blank=True, null=True, upload_to='')), ], ), migrations.CreateModel( name='DiagnosticFile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=150)), ('file', models.FileField(upload_to='')), ('type', models.CharField(choices=[('DOC', 'Document'), ('IMG', 'Image'), ('VID', 'Video'), ('OTR', 'Other')], default='DOC', max_length=3)), ('description', models.TextField(blank=True, null=True)), ], options={ 'verbose_name_plural': 'diagnostic files', }, ), migrations.CreateModel( name='DiagnosticSetup', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateTimeField(null=True)), ('expiration', models.DateField(blank=True, null=True)), ('description', models.TextField()), ('image', models.ImageField(null=True, upload_to='')), ], ), migrations.RemoveField( model_name='diagnostic', name='noise', ), migrations.RemoveField( model_name='diagnostic', name='resolution', ), migrations.AddField( model_name='diagnostic', name='datasheet', field=models.FileField(blank=True, null=True, upload_to=''), ), migrations.AddField( model_name='diagnosticsetup', name='diagnostic', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='data.Diagnostic'), ), migrations.AddField( model_name='diagnosticfile', name='diagnostic', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='data.Diagnostic'), ), migrations.AddField( model_name='diagnosticfile', name='run', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='data.Run'), ), migrations.AddField( model_name='diagnosticcalibration', name='diagnostic', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='data.Diagnostic'), ), migrations.AddField( model_name='diagnosticcalibration', name='inputUnits', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='data.Unit'), ), ]
class Migration(migrations.Migration): dependencies = [ ('data', '0001_initial'), ] operations = [ migrations.CreateModel( name='Reserve', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, verbose_name='Criado em')), ('deleted', models.DateTimeField(blank=True, editable=False, null=True, verbose_name='Deletado em')), ('modified', models.DateTimeField(auto_now=True, verbose_name='Modificado em')), ('remedio', models.CharField(max_length=150, verbose_name='Remédio')), ('quantity', models.IntegerField(null=True, verbose_name='Quantidade')), ('quantity_unit', models.CharField(blank=True, choices=[('mg', 'mg'), ('g', 'g'), ('kg', 'kg'), ('ml', 'ml'), ('l', 'l'), ('cx', 'cx')], max_length=2, null=True, verbose_name='Unidade')), ('pills', models.IntegerField(verbose_name='Quantidade (em pílulas)')), ('doctor', models.CharField(max_length=150, verbose_name='Nome do Médico')), ('crm', models.CharField(max_length=10, verbose_name='CRM do Médico')), ('prescription', models.FileField( upload_to=data.models.prescription_file_upload, verbose_name='Receita')), ], options={ 'verbose_name': 'Reserva', 'verbose_name_plural': 'Reservas', 'ordering': ['remedio'], }, ), migrations.AlterModelOptions( name='donation', options={ 'ordering': ['remedio'], 'verbose_name': 'Doação', 'verbose_name_plural': 'Doações' }, ), migrations.AlterField( model_name='donation', name='quantity_unit', field=models.CharField(blank=True, max_length=2, null=True, verbose_name='Unidade'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(auto_now_add=True, null=True)), ('bupt_id', models.CharField(default=data.models.default_bupt_id, max_length=10, unique=True)), ('name', models.TextField(default='')), ('email', models.EmailField(max_length=254, unique=True)), ('phone', models.CharField(default=data.models.default_phone, max_length=11, unique=True)), ('gender', models.CharField(choices=[('male', 'male'), ('female', 'female')], default='male', max_length=6)), ('usertype', models.CharField(choices=[('student', 'student'), ('teacher', 'teacher'), ('assistant', 'assistant')], default='student', max_length=20)), ('class_number', models.CharField(default='noClass', max_length=10)), ('wechat', models.TextField(null=True)), ('forgotten', models.BooleanField(default=False)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('user_permissions', models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='HWFAssignment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.TextField()), ('description', models.TextField(blank=True, null=True)), ('assignment_type', models.CharField(choices=[('image', 'image'), ('docs', 'docs'), ('vary', 'vary')], default='vary', max_length=20)), ('start_time', models.DateTimeField(default='2019-01-01T00:00:00+00:00')), ('deadline', models.DateTimeField()), ('weight', models.FloatField(default=0.0)), ], ), migrations.CreateModel( name='HWFCourseClass', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.TextField()), ('description', models.TextField(blank=True, null=True)), ('marks', models.FloatField(default=0.0)), ('school', models.TextField(blank=True, null=True)), ('start_time', models.DateTimeField(blank=True, null=True)), ('end_time', models.DateTimeField(blank=True, null=True)), ('students', models.ManyToManyField(blank=True, related_name='students_course', to=settings.AUTH_USER_MODEL)), ('teachers', models.ManyToManyField(blank=True, related_name='teachers_course', to=settings.AUTH_USER_MODEL)), ('teaching_assistants', models.ManyToManyField( blank=True, related_name='teaching_assistants_course', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='HWFFile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('data', models.FileField(null=True, upload_to='homework_file')), ('initial_upload_time', models.DateTimeField(auto_now_add=True)), ('initial_upload_user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='HWFSubmission', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('aware', models.BooleanField(default=True)), ('submit_time', models.DateTimeField(auto_now_add=True)), ('description', models.TextField(blank=True, null=True)), ('score', models.FloatField(default=0.0)), ('is_excellent', models.BooleanField(default=False)), ('addfile', models.ManyToManyField(blank=True, related_name='addfile_submission', to='data.HWFFile')), ('assignment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='assignment_submission', to='data.HWFAssignment')), ('image', models.ManyToManyField(blank=True, related_name='image_submission', to='data.HWFFile')), ('pdf', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='pdf_submission', to='data.HWFFile')), ('submitter', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='my_submission', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Message', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('send_time', models.DateTimeField(auto_now_add=True)), ('read', models.BooleanField(default=False)), ], ), migrations.CreateModel( name='MessageContent', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.TextField(max_length=2000)), ], ), migrations.CreateModel( name='MessageFile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('data', models.FileField(null=True, upload_to='chat_file')), ('initial_upload_time', models.DateTimeField(auto_now_add=True)), ('initial_upload_user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='UserAvatar', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('url_height', models.PositiveIntegerField(default=75)), ('url_width', models.PositiveIntegerField(default=75)), ('useravatar', models.ImageField(height_field='url_height', null=True, upload_to='avatars', width_field='url_width')), ('user', models.ManyToManyField(related_name='useravatar', to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='messagecontent', name='addfile', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, related_name='file_message_content', to='data.MessageFile'), ), migrations.AddField( model_name='messagecontent', name='audio', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, related_name='audio_message_content', to='data.MessageFile'), ), migrations.AddField( model_name='messagecontent', name='picture', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, related_name='pic_message_content', to='data.MessageFile'), ), migrations.AddField( model_name='message', name='content', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='complete_message', to='data.MessageContent'), ), migrations.AddField( model_name='message', name='receiver', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='in_message', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='message', name='sender', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='out_message', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='hwfassignment', name='addfile', field=models.ManyToManyField(blank=True, related_name='assignment', to='data.HWFFile'), ), migrations.AddField( model_name='hwfassignment', name='course_class', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='course_assignments', to='data.HWFCourseClass'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Project', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, unique=True, verbose_name='英文简称')), ('fullDisplayName', models.CharField(db_index=True, max_length=255, verbose_name='中文全称')), ('description', models.TextField(blank=True, null=True, verbose_name='描述')), ('url', models.URLField(max_length=255, unique=True, verbose_name='URL地址')), ('config_xml', models.FileField(upload_to=data.models.project_filepath, verbose_name='config.xml')), ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='创建时间')), ('updated_at', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ], options={ 'verbose_name': '项目', 'verbose_name_plural': '项目', 'ordering': ('name', 'created_at'), }, ), migrations.CreateModel( name='Job', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(db_index=True, max_length=255, verbose_name='Job名')), ('fullDisplayName', models.CharField(db_index=True, max_length=255, verbose_name='中文全称')), ('description', models.TextField(blank=True, null=True, verbose_name='描述')), ('url', models.URLField(max_length=255, unique=True, verbose_name='URL地址')), ('config_xml', models.FileField(upload_to=data.models.job_filepath, verbose_name='config.xml')), ('env', models.CharField(default='all', max_length=255, verbose_name='环境(组)')), ('nextBuildNumber', models.PositiveIntegerField(verbose_name='下次构建ID')), ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='创建时间')), ('updated_at', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='job_project', to='data.Project', verbose_name='所属项目')), ], options={ 'verbose_name': 'Job', 'verbose_name_plural': 'Job', 'ordering': ('name', 'created_at'), 'unique_together': {('project', 'name')}, }, ), migrations.CreateModel( name='Build', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('build_id', models.PositiveIntegerField(verbose_name='构建ID')), ('url', models.URLField(max_length=255, unique=True, verbose_name='URL地址')), ('result', models.CharField(choices=[(0, 'SUCCESS'), (1, 'FAILED')], max_length=1, verbose_name='执行结果')), ('fullDisplayName', models.CharField(db_index=True, max_length=255, verbose_name='中文全称')), ('description', models.TextField(blank=True, null=True, verbose_name='描述')), ('start_time', models.DateTimeField(verbose_name='开始时间')), ('duration', models.PositiveSmallIntegerField(verbose_name='构建时长')), ('consoleText', models.FileField(upload_to=data.models.build_filepath, verbose_name='构建console信息')), ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='创建时间')), ('updated_at', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='build_job', to='data.Job', verbose_name='所属Job')), ], options={ 'verbose_name': '构建', 'verbose_name_plural': '构建', 'ordering': ('build_id', 'created_at'), 'unique_together': {('job', 'build_id')}, }, ), migrations.CreateModel( name='JobParameter', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, verbose_name='参数名')), ('type', models.CharField(max_length=255, verbose_name='参数类型')), ('value', models.CharField(blank=True, max_length=255, null=True, verbose_name='参数值')), ('description', models.TextField(blank=True, null=True, verbose_name='描述')), ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='创建时间')), ('updated_at', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parameter_job', to='data.Job', verbose_name='所属Job')), ], options={ 'verbose_name': 'Job参数', 'verbose_name_plural': 'Job参数', 'ordering': ('name', 'created_at'), 'unique_together': {('job', 'name')}, }, ), migrations.CreateModel( name='BuildParameter', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, verbose_name='参数名')), ('value', models.CharField(blank=True, max_length=255, null=True, verbose_name='参数值')), ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='创建时间')), ('updated_at', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('build', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='parameter_build', to='data.Build', verbose_name='所属构建')), ], options={ 'verbose_name': '构建参数', 'verbose_name_plural': '构建参数', 'ordering': ('name', 'created_at'), 'unique_together': {('build', 'name')}, }, ), ]