Bin
2025-12-17 1442f92732d7c5311a627a7ba3aaa0bb8ffc539f
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
# Generated by Django 4.2.15 on 2024-12-22 09:54
 
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_migration_linter as linter
 
 
class Migration(migrations.Migration):
 
    dependencies = [
        ('users', '0009_auto_20231201_0001'),
    ]
 
    operations = [
        linter.IgnoreMigration(),
        migrations.CreateModel(
            name='UserProductTour',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(help_text='Unique identifier for the product tour. Name must match the config name.', max_length=256, verbose_name='Name')),
                ('state', models.CharField(choices=[('ready', 'Ready'), ('completed', 'Completed'), ('skipped', 'Skipped')], default='ready', help_text='Current state of the tour for this user. Available options: ready (Ready), completed (Completed), skipped (Skipped)', max_length=32, verbose_name='State')),
                ('interaction_data', models.JSONField(blank=True, default=dict, help_text='Additional data about user interaction with the tour', verbose_name='Interaction Data')),
                ('created_at', models.DateTimeField(auto_now_add=True, help_text='When this tour record was created')),
                ('updated_at', models.DateTimeField(auto_now=True, help_text='When this tour record was last updated')),
                ('user', models.ForeignKey(help_text='User who interacted with the tour', on_delete=django.db.models.deletion.CASCADE, related_name='tours', to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]