class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='DebitCard', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('card_number', models.BigIntegerField(validators=[ card.models.check_card_number, django.core.validators.MinValueValidator( 4000000000000000, message= 'Please enter Card NUmber which is > 4000000000000000' ) ])), ('card_cvv', models.SmallIntegerField(validators=[ django.core.validators.MinValueValidator( 100, message='Cvv must be > 100'), django.core.validators.MaxValueValidator( 999, message='Cvv must be < 999') ])), ('card_name', models.CharField(max_length=100)), ('card_exp_month', models.PositiveSmallIntegerField( null=True, validators=[ django.core.validators.MaxValueValidator( 12, message='It is not Valid Month'), django.core.validators.MinValueValidator( 1, message='It is not Valid Month') ])), ('card_exp_year', models.PositiveSmallIntegerField( null=True, validators=[ django.core.validators.MaxValueValidator( 2030, message='It is not Valid Year'), django.core.validators.MinValueValidator( 2020, message='It is not Valid Year') ])), ('card_balance', models.PositiveIntegerField(default=0)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Cards', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('roll_no', models.CharField(max_length=10, unique=True)), ('name', models.CharField(max_length=100)), ('image', models.ImageField(help_text='Filename should be in format rollno_name, Max. size is 1MB and valid file types jpg, jpeg, png', upload_to='card_pics', validators=[django.core.validators.FileExtensionValidator(['jpg', 'jpeg', 'png']), card.models.Cards.validate_image])), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Card', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('card_id', models.CharField(max_length=255, unique=True)), ('name', models.CharField(max_length=255)), ('rarity', enumfields.fields.EnumIntegerField( enum=card.models.Card.Rarity)), ('card_type', enumfields.fields.EnumIntegerField( enum=card.models.Card.CardType)), ('cost', models.IntegerField()), ('attack', models.IntegerField(blank=True, null=True)), ('health', models.IntegerField(blank=True, null=True)), ('effect', models.CharField(blank=True, default='', max_length=255)), ('collectible', models.BooleanField(default=True)), ], ), migrations.CreateModel( name='CardBlock', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, unique=True)), ('slug', models.CharField(max_length=255, unique=True)), ('block_type', enumfields.fields.EnumIntegerField( enum=card.models.CardBlock.BlockType)), ], ), migrations.CreateModel( name='CardMechanic', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, unique=True)), ('slug', models.CharField(max_length=255, unique=True)), ], ), migrations.CreateModel( name='HeroClass', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, unique=True)), ('slug', models.CharField(max_length=255, unique=True)), ], ), migrations.CreateModel( name='Tribe', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, unique=True)), ('slug', models.CharField(max_length=255, unique=True)), ], ), migrations.AddField( model_name='card', name='block', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='card.CardBlock'), ), migrations.AddField( model_name='card', name='hero_class', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='card.HeroClass'), ), migrations.AddField( model_name='card', name='mechanics', field=models.ManyToManyField(to='card.CardMechanic'), ), migrations.AddField( model_name='card', name='tribe', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='card.Tribe'), ), ]
class Migration(migrations.Migration): dependencies = [ ('card', '0001_initial'), ] operations = [ migrations.CreateModel( name='CardDetail', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('college_name', models.CharField(max_length=200)), ('group_name', models.CharField(max_length=50, unique=True)), ('participant1_name', models.CharField(max_length=100)), ('image1', models.ImageField( help_text= 'Filename should be in format collegeName_YourName, Max. size is 500KB and valid file types jpg, jpeg, png', upload_to='college_card_pics', validators=[ django.core.validators.FileExtensionValidator( ['jpg', 'jpeg', 'png']), card.models.CardDetail.validate_image ])), ('participant2_name', models.CharField(max_length=100)), ('image2', models.ImageField( help_text= 'Filename should be in format collegeName_YourName, Max. size is 500KB and valid file types jpg, jpeg, png', upload_to='college_card_pics', validators=[ django.core.validators.FileExtensionValidator( ['jpg', 'jpeg', 'png']), card.models.CardDetail.validate_image ])), ('participant3_name', models.CharField(max_length=100)), ('image3', models.ImageField( help_text= 'Filename should be in format collegeName_YourName, Max. size is 500KB and valid file types jpg, jpeg, png', upload_to='college_card_pics', validators=[ django.core.validators.FileExtensionValidator( ['jpg', 'jpeg', 'png']), card.models.CardDetail.validate_image ])), ('participant4_name', models.CharField(max_length=100)), ('image4', models.ImageField( help_text= 'Filename should be in format collegeName_YourName, Max. size is 500KB and valid file types jpg, jpeg, png', upload_to='college_card_pics', validators=[ django.core.validators.FileExtensionValidator( ['jpg', 'jpeg', 'png']), card.models.CardDetail.validate_image ])), ('participant5_name', models.CharField(max_length=100)), ('image5', models.ImageField( help_text= 'Filename should be in format collegeName_YourName, Max. size is 500KB and valid file types jpg, jpeg, png', upload_to='college_card_pics', validators=[ django.core.validators.FileExtensionValidator( ['jpg', 'jpeg', 'png']), card.models.CardDetail.validate_image ])), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('user', models.CharField(max_length=200)), ('password1', models.CharField(max_length=50)), ('password2', models.CharField(blank=True, max_length=50)), ('message', models.CharField(max_length=200)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('author', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': '댓글', 'verbose_name_plural': '댓글', }, ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('ohoystudio_url', models.CharField(max_length=300)), ('youtube_url', models.TextField(default='')), ('call1', models.CharField(max_length=100)), ('call2', models.CharField(max_length=100)), ('naver_map_url', models.CharField(max_length=500)), ('kakao_link_label', models.TextField(max_length=500)), ('main_image1', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('invitation_image2', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('family_image3', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('call1_image4', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('call2_image5', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('celendar_image6', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('gallery_image7', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('videotitle_image8', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('map_image9', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('map_infor_image10', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('message_title_image11', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('kakao_image12', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('story_image13', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('facebook_image14', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('copyright_image16', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('kakao_thumbnail', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('preview_image', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': '댓글있는 청첩장', 'verbose_name_plural': '댓글있는 청첩장(메인)', }, ), migrations.CreateModel( name='PostGallery', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('gallery_image1', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('gallery_image2', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('gallery_image3', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('post', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='card.Post')), ], options={ 'verbose_name': '갤러리', 'verbose_name_plural': '갤러리', }, ), migrations.CreateModel( name='SmsImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100)), ('message_image1', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('message_image2', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('message_image3', imagekit.models.fields.ProcessedImageField( blank=True, upload_to=card.models.get_image_path)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('post', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='card.Post')), ], options={ 'verbose_name': '2G 핸드폰공유 이미지', 'verbose_name_plural': '2G 핸드폰공유 이미지', }, ), migrations.AddField( model_name='comment', name='post', field=models.ForeignKey( on_delete=django.db.models.deletion.PROTECT, to='card.Post'), ), ]