# Generated by Django 5.2.8 on 2025-12-08 02:58

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


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0006_subscriptionplan_allow_barcode_scanner_and_more'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='subscriptionplan',
            options={},
        ),
        migrations.RemoveField(
            model_name='license',
            name='created_at',
        ),
        migrations.RemoveField(
            model_name='license',
            name='notes',
        ),
        migrations.RemoveField(
            model_name='license',
            name='updated_at',
        ),
        migrations.AddField(
            model_name='subscriptionplan',
            name='allow_advanced_reports',
            field=models.BooleanField(default=False),
        ),
        migrations.AlterField(
            model_name='license',
            name='license_key',
            field=models.CharField(max_length=100, unique=True),
        ),
        migrations.AlterField(
            model_name='license',
            name='plan',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='core.subscriptionplan'),
        ),
        migrations.AlterField(
            model_name='license',
            name='started_at',
            field=models.DateField(blank=True, null=True),
        ),
        migrations.AlterField(
            model_name='subscriptionplan',
            name='allow_barcode_scanner',
            field=models.BooleanField(default=True, help_text='Enable barcode scanning in POS'),
        ),
        migrations.AlterField(
            model_name='subscriptionplan',
            name='max_categories',
            field=models.PositiveIntegerField(default=0),
        ),
        migrations.AlterField(
            model_name='subscriptionplan',
            name='max_orders_per_day',
            field=models.PositiveIntegerField(default=0),
        ),
        migrations.AlterField(
            model_name='subscriptionplan',
            name='max_products',
            field=models.PositiveIntegerField(default=0),
        ),
        migrations.AlterField(
            model_name='subscriptionplan',
            name='max_users',
            field=models.PositiveIntegerField(default=0, help_text='0 = unlimited users'),
        ),
    ]
