summaryrefslogtreecommitdiff
path: root/app/posts/migrations/0001_initial.py
blob: 87a9c955ee8d16d21bf5560de104fed09dd98a30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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',),
            },
        ),
    ]