# Generated by Django 5.2.8 on 2026-02-04 08:01

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('wagtailcore', '0096_referenceindex_referenceindex_source_object_and_more'),
        ('wagtailimages', '0027_image_description'),
    ]

    operations = [
        migrations.CreateModel(
            name='TenantProfile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('description', models.TextField(blank=True, help_text='Deskripsi singkat bisnis')),
                ('website', models.URLField(blank=True, help_text='Website utama (https://...)')),
                ('address', models.CharField(blank=True, help_text='Alamat bisnis', max_length=255)),
                ('latitude', models.DecimalField(blank=True, decimal_places=6, max_digits=9, null=True)),
                ('longitude', models.DecimalField(blank=True, decimal_places=6, max_digits=9, null=True)),
                ('socials', models.JSONField(blank=True, default=list, help_text='Daftar URL social media')),
                ('logo', models.ForeignKey(blank=True, help_text='Logo utama bisnis (digunakan di FE)', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.image')),
                ('site', models.OneToOneField(editable=False, on_delete=django.db.models.deletion.CASCADE, to='wagtailcore.site')),
            ],
            options={
                'verbose_name': 'Tenant Profile',
            },
        ),
    ]
