# Generated by Django 4.2.18 on 2025-03-04 17:03

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('workspaces','0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='DimensionDetail',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('attribute_type', models.CharField(help_text='Attribute Type', max_length=255)),
                ('display_name', models.CharField(help_text='Attribute Display Name', max_length=255)),
                ('source_type', models.CharField(choices=[('ACCOUNTING', 'ACCOUNTING'), ('FYLE', 'FYLE')], default='ACCOUNTING', help_text='Source Type', max_length=100)),
                ('created_at', models.DateTimeField(auto_now_add=True, help_text='Created at')),
                ('updated_at', models.DateTimeField(auto_now=True, help_text='Updated at')),
                ('workspace', models.ForeignKey(help_text='Reference to Workspace', on_delete=django.db.models.deletion.PROTECT, to='workspaces.workspace')),
            ],
            options={
                'db_table': 'dimension_details',
                'unique_together': {('attribute_type', 'display_name', 'workspace_id', 'source_type')},
            },
        ),
    ]
