diff options
Diffstat (limited to 'python/bb_dashboard/www/migrations')
-rw-r--r-- | python/bb_dashboard/www/migrations/0001_initial.py | 95 | ||||
-rw-r--r-- | python/bb_dashboard/www/migrations/__init__.py | 0 |
2 files changed, 95 insertions, 0 deletions
diff --git a/python/bb_dashboard/www/migrations/0001_initial.py b/python/bb_dashboard/www/migrations/0001_initial.py new file mode 100644 index 0000000..d2ef79d --- /dev/null +++ b/python/bb_dashboard/www/migrations/0001_initial.py @@ -0,0 +1,95 @@ +# Generated by Django 3.2.3 on 2021-06-12 23:07 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Menys', + fields=[ + ('id', models.IntegerField(primary_key=True, serialize=False)), + ('title', models.CharField(max_length=200)), + ('description', models.CharField(max_length=200)), + ('name', models.CharField(max_length=100)), + ('view', models.BooleanField(default=False)), + ('sort', models.IntegerField(default=0)), + ('url', models.CharField(max_length=200)), + ('arg', models.CharField(blank=True, max_length=50)), + ('access', models.BooleanField(default=False)), + ('sub', models.BooleanField(default=False)), + ], + options={ + 'db_table': 'menys', + }, + ), + migrations.CreateModel( + name='Posts', + fields=[ + ('id', models.IntegerField(primary_key=True, serialize=False)), + ('title', models.CharField(max_length=200)), + ('url', models.CharField(max_length=200)), + ('text', models.TextField()), + ('created_at', models.DateTimeField(auto_now_add=True)), + ], + options={ + 'db_table': 'posts', + }, + ), + migrations.CreateModel( + name='SiteSettings', + fields=[ + ('id', models.IntegerField(primary_key=True, serialize=False)), + ('site', models.CharField(max_length=20)), + ('title', models.CharField(max_length=50)), + ('email', models.CharField(max_length=50)), + ('description', models.CharField(max_length=100)), + ('url', models.CharField(max_length=50)), + ('contact', models.CharField(max_length=50)), + ], + options={ + 'db_table': 'site_settings', + }, + ), + migrations.CreateModel( + name='Sponsors', + fields=[ + ('id', models.IntegerField(primary_key=True, serialize=False)), + ('name', models.CharField(max_length=200)), + ('img', models.CharField(max_length=200)), + ('link', models.CharField(max_length=200)), + ('title', models.CharField(max_length=200)), + ('alt', models.CharField(max_length=200)), + ('weight', models.IntegerField(default=0)), + ('active', models.BooleanField(default=False)), + ], + options={ + 'db_table': 'sponsors', + }, + ), + migrations.CreateModel( + name='SubMenys', + fields=[ + ('id', models.IntegerField(primary_key=True, serialize=False)), + ('title', models.CharField(max_length=200)), + ('description', models.CharField(max_length=200)), + ('name', models.CharField(max_length=100)), + ('view', models.BooleanField(default=False)), + ('sort', models.IntegerField(default=0)), + ('url', models.CharField(max_length=200)), + ('arg', models.CharField(blank=True, max_length=50)), + ('access', models.BooleanField(default=False)), + ('MenyId', models.ForeignKey(db_column='meny_id', on_delete=django.db.models.deletion.CASCADE, to='www.menys')), + ], + options={ + 'db_table': 'sub_menys', + }, + ), + ] diff --git a/python/bb_dashboard/www/migrations/__init__.py b/python/bb_dashboard/www/migrations/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/python/bb_dashboard/www/migrations/__init__.py |