summaryrefslogtreecommitdiff
path: root/ishtar_common/migrations/0273_searchcache.py
blob: 00b2f1fb180e5cc8f969c928ba4628f069e1bbfd (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
# Generated by Django 4.2.19 on 2026-03-17 16:02

from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    dependencies = [
        ('contenttypes', '0002_remove_content_type_name'),
        ('ishtar_common', '0272_ishtarsiteprofile_statementcondition'),
    ]

    operations = [
        migrations.CreateModel(
            name='SearchCache',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('query', models.TextField(blank=True, default='', verbose_name='Query')),
                ('count', models.IntegerField(verbose_name='Count')),
                ('updated', models.DateTimeField(default=django.utils.timezone.now)),
                ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.contenttype')),
                ('ishtar_user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='ishtar_common.ishtaruser')),
            ],
            options={
                'verbose_name': 'Cache - Search count',
                'verbose_name_plural': 'Cache - Search counts',
            },
        ),
    ]