class Migration(migrations.Migration): dependencies = [ ('boards', '0003_boardlist'), ] operations = [ migrations.CreateModel( name='Card', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=500)), ('description', models.TextField(blank=True, max_length=200, null=True)), ('image', models.FileField(blank=True, null=True, upload_to=boards.models.uploadto)), ('card_image_name', models.CharField(blank=True, max_length=128, null=True)), ('position', models.PositiveIntegerField(default=0)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_modified', models.DateTimeField(auto_now=True)), ('board', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='boards.Boardlist')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Board', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=12)), ('slug', models.CharField(default=boards.models.uuid_generate, max_length=12, unique=True)), ('description', models.CharField(blank=True, max_length=80)), ('date_created', models.DateTimeField(auto_now_add=True)), ('date_changed', models.DateTimeField(auto_now=True)), ('is_private', models.BooleanField(default=False)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='author', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-date_created'], }, ), migrations.CreateModel( name='BoardFollower', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date_created', models.DateTimeField(auto_now_add=True)), ('board', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='board_followers', to='boards.Board')), ('follower', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user_board_followings', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-date_created'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Board', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, unique=True)), ('description', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('message', models.TextField(max_length=4000)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(null=True)), ('created_by', models.ForeignKey(on_delete=models.SET(boards.models.get_sentinel_user), related_name='posts', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Topic', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('subject', models.CharField(max_length=255)), ('last_updated', models.DateTimeField(auto_now_add=True)), ('board', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='topics', to='boards.Board')), ('starter', models.ForeignKey(on_delete=models.SET(boards.models.get_sentinel_user), related_name='topics', to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='post', name='topic', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='posts', to='boards.Topic'), ), migrations.AddField( model_name='post', name='updated_by', field=models.ForeignKey(null=True, on_delete=models.SET(boards.models.get_sentinel_user), related_name='+', to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): dependencies = [ ('boards', '0001_initial'), ] operations = [ migrations.AlterField( model_name='board', name='title', field=models.CharField(default=boards.models.get_default_title, max_length=256), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Board', fields=[ ('id', models.CharField(default=boards.models.generate_board_id, max_length=8, primary_key=True, serialize=False)), ('title', models.CharField(max_length=2000)), ('path', models.CharField(max_length=2000)), ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=True)), ('creator', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='boards', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='BoardGroup', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('boards', models.ManyToManyField(to='boards.Board')), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.CharField(default=boards.models.generate_post_id, max_length=11, primary_key=True, serialize=False)), ('text', models.TextField(max_length=65536)), ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=True)), ('creator', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='posts', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='QsRule', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('path', models.CharField(max_length=2000)), ('params', models.CharField(max_length=500)), ], ), migrations.CreateModel( name='ReRule', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('regex', models.CharField(max_length=500)), ('repl', models.CharField(max_length=500)), ], ), migrations.CreateModel( name='Site', fields=[ ('id', models.CharField(default=boards.models.generate_site_id, max_length=7, primary_key=True, serialize=False)), ('netloc', models.URLField(db_index=True, max_length=100, unique=True)), ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=True)), ('creator', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='sites', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Thread', fields=[ ('id', models.CharField(default=boards.models.generate_thread_id, max_length=11, primary_key=True, serialize=False)), ('raw_path', models.CharField(max_length=2000)), ('title', models.CharField(max_length=100)), ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=True)), ('board', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='threads', to='boards.Board')), ('creator', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='threads', to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='rerule', name='site', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='re_rules', to='boards.Site'), ), migrations.AddField( model_name='qsrule', name='site', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='qs_rules', to='boards.Site'), ), migrations.AddField( model_name='post', name='origin', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='posts', to='boards.Site'), ), migrations.AddField( model_name='post', name='parent', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='boards.Post'), ), migrations.AddField( model_name='post', name='thread', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='posts', to='boards.Thread'), ), migrations.AddField( model_name='board', name='site', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='boards', to='boards.Site'), ), migrations.AlterUniqueTogether( name='qsrule', unique_together=set([('site', 'path')]), ), migrations.AlterIndexTogether( name='qsrule', index_together=set([('site', 'path')]), ), migrations.AlterUniqueTogether( name='board', unique_together=set([('site', 'path')]), ), migrations.AlterIndexTogether( name='board', index_together=set([('site', 'path')]), ), ]