diff --git a/core/migrations/0024_categorytag_category_tags.py b/core/migrations/0024_categorytag_category_tags.py new file mode 100644 index 00000000..de31021a --- /dev/null +++ b/core/migrations/0024_categorytag_category_tags.py @@ -0,0 +1,102 @@ +# Generated by Django 5.2 on 2025-06-10 02:42 + +import django_extensions.db.fields +import django_prometheus.models +import uuid +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ('core', '0023_address_address_line'), + ] + + operations = [ + migrations.CreateModel( + name='CategoryTag', + fields=[ + ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, + help_text='unique id is used to surely identify any database object', + primary_key=True, serialize=False, verbose_name='unique id')), + ('is_active', models.BooleanField(default=True, + help_text="if set to false, this object can't be seen by users without needed permission", + verbose_name='is active')), + ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, + help_text='when the object first appeared on the database', + verbose_name='created')), + ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, + help_text='when the object was last modified', + verbose_name='modified')), + ('tag_name', models.CharField(help_text='internal tag identifier for the product tag', max_length=255, + verbose_name='tag name')), + ('name', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, unique=True, + verbose_name='tag display name')), + ('name_en_gb', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_ar_ar', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_cs_cz', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_da_dk', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_de_de', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_en_us', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_es_es', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_fr_fr', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_hi_in', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_it_it', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_ja_jp', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_kk_kz', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_nl_nl', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_pl_pl', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_pt_br', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_ro_ro', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_ru_ru', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ('name_zh_hans', + models.CharField(help_text='user-friendly name for the product tag', max_length=255, null=True, + unique=True, verbose_name='tag display name')), + ], + options={ + 'verbose_name': 'category tag', + 'verbose_name_plural': 'category tags', + }, + bases=(django_prometheus.models.ExportModelOperationsMixin('category_tag'), models.Model), + ), + migrations.AddField( + model_name='category', + name='tags', + field=models.ManyToManyField(blank=True, help_text='tags that help describe or group this category', + to='core.categorytag', verbose_name='category tags'), + ), + ]