class Migration(migrations.Migration): dependencies = [ ('complaints', '0001_initial'), ] operations = [ migrations.AddField( model_name='complaints', name='ticket_id', field=models.CharField(default=complaints.models.generate_key, max_length=25), ), migrations.AlterField( model_name='complaints', name='phone_number', field=models.CharField( max_length=15, validators=[ django.core.validators.RegexValidator( message= "Phone number must be entered in the format: '+999999999'. Up to 15 digits allowed.", regex='^\\+?1?\\d{9,15}$') ]), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('rooms', '0001_initial'), ('employees', '0001_initial'), ] operations = [ migrations.CreateModel( name='complain_type', fields=[ ('complain_type', models.CharField(max_length=100, primary_key=True, serialize=False)), ], ), migrations.CreateModel( name='Complain', fields=[ ('complain_number', models.IntegerField(default=complaints.models.Complain.number, max_length=6, primary_key=True, serialize=False)), ('customer_ID', models.CharField(max_length=100)), ('date', models.DateTimeField(default=django.utils.timezone.now)), ('problem_type', models.CharField(blank=True, choices=[('1', 'room clean after checkout'), ('2', 'room clean by client request'), ('3', 'room clean by complain'), ('A', 'delivery amenity'), ('B', 'delivery client things'), ('C', 'add extra bed'), ('other', 'Other')], max_length=30)), ('complain_message', models.CharField(max_length=100)), ('complain_code', models.CharField(blank=True, max_length=20, null=True)), ('complain_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='complaints.complain_type')), ('employee_ID', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='employees.employee')), ('room_number', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='rooms.room')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Complaint', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=200)), ('body', models.TextField()), ('status', models.BooleanField(default=False)), ('media', models.FileField( upload_to=complaints.models.Complaint.user_directory_path) ), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('complaints', '0002_auto_20180321_1309'), ] operations = [ migrations.AlterField( model_name='complaints', name='ticket_id', field=models.CharField(default=complaints.models.generate_key, max_length=25, unique=True), ), ]
class Migration(migrations.Migration): dependencies = [ ('complaints', '0001_initial'), ] operations = [ migrations.AlterField( model_name='complain', name='complain_number', field=models.CharField(default=complaints.models.Complain.number, max_length=6, primary_key=True, serialize=False), ), ]