summaryrefslogtreecommitdiff
path: root/app/posts/migrations/0001_initial.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/posts/migrations/0001_initial.py')
-rw-r--r--app/posts/migrations/0001_initial.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/app/posts/migrations/0001_initial.py b/app/posts/migrations/0001_initial.py
new file mode 100644
index 0000000..87a9c95
--- /dev/null
+++ b/app/posts/migrations/0001_initial.py
@@ -0,0 +1,33 @@
+# Generated by Django 4.2.2 on 2023-07-10 18:02
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('products', '__first__'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Post',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('title', models.TextField(blank=True)),
+ ('body', models.TextField()),
+ ('url', models.CharField(blank=True, max_length=512, null=True)),
+ ('date_last_pub', models.DateTimeField()),
+ ('guid', models.CharField(blank=True, db_index=True, max_length=512, null=True)),
+ ('author', models.CharField(blank=True, max_length=255, null=True)),
+ ('post_type', models.IntegerField(choices=[(0, 'review'), (1, 'guide'), (2, 'gallery'), (3, 'how-to')], default=1)),
+ ('update_frequency', models.IntegerField(help_text='In days')),
+ ('products', models.ManyToManyField(to='products.productlink')),
+ ],
+ options={
+ 'ordering': ('date_last_pub',),
+ },
+ ),
+ ]