# Generated by Django 5.2.8 on 2025-12-14 00:42

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


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0027_remove_legacy_feature_fields'),
    ]

    operations = [
        migrations.CreateModel(
            name='TenantStorageUsage',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('bytes_used', models.BigIntegerField(default=0, help_text='Total storage used in bytes')),
                ('file_count', models.PositiveIntegerField(default=0, help_text='Total number of media files')),
                ('last_calculated', models.DateTimeField(auto_now=True, help_text='When usage was last updated')),
                ('tenant', models.OneToOneField(help_text='The tenant this usage record belongs to', on_delete=django.db.models.deletion.CASCADE, related_name='storage_usage', to='core.tenant')),
            ],
            options={
                'verbose_name': 'Tenant Storage Usage',
                'verbose_name_plural': 'Tenant Storage Usage',
            },
        ),
    ]
