# Generated by Django 4.2 on 2023-05-02 10:31

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Customer',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('TimeCreated', models.DateTimeField(auto_created=True)),
                ('CustomerName', models.CharField(max_length=80)),
                ('CustomerFullName', models.CharField(max_length=160)),
                ('CustomerIsActive', models.BooleanField(default=True)),
                ('Sublevel', models.PositiveSmallIntegerField(default=0)),
                ('CompanyName', models.CharField(max_length=80)),
                ('Salutation', models.CharField(max_length=5)),
                ('FirstName', models.CharField(max_length=80)),
                ('MiddleName', models.CharField(blank=True, max_length=80, null=True)),
                ('LastName', models.CharField(blank=True, max_length=80, null=True)),
                ('BillAddr1', models.CharField(max_length=80)),
                ('BillAddr2', models.CharField(blank=True, max_length=80, null=True)),
                ('BillAddr3', models.CharField(blank=True, max_length=80, null=True)),
                ('BillAddr4', models.CharField(blank=True, max_length=80, null=True)),
                ('BillAddr5', models.CharField(blank=True, max_length=80, null=True)),
                ('BillCity', models.CharField(blank=True, max_length=80, null=True)),
                ('BillState', models.CharField(blank=True, max_length=80, null=True)),
                ('BillPostalCode', models.CharField(blank=True, max_length=80, null=True)),
                ('BillCountry', models.CharField(default='Indonesia', max_length=80)),
                ('BillNote', models.CharField(blank=True, max_length=80, null=True)),
                ('ShipAddr1', models.CharField(blank=True, max_length=80, null=True)),
                ('ShipAddr2', models.CharField(blank=True, max_length=80, null=True)),
                ('ShipAddr3', models.CharField(blank=True, max_length=80, null=True)),
                ('ShipAddr4', models.CharField(blank=True, max_length=80, null=True)),
                ('ShipAddr5', models.CharField(blank=True, max_length=80, null=True)),
                ('ShipCity', models.CharField(blank=True, max_length=80, null=True)),
                ('ShipState', models.CharField(blank=True, max_length=80, null=True)),
                ('ShipPostalCode', models.CharField(blank=True, max_length=80, null=True)),
                ('ShipCountry', models.CharField(blank=True, max_length=80, null=True)),
                ('ShipNote', models.CharField(blank=True, max_length=200, null=True)),
                ('Phone', models.CharField(blank=True, max_length=80, null=True)),
                ('Contact', models.CharField(max_length=80)),
                ('Notes', models.CharField(blank=True, max_length=200, null=True)),
                ('AltPhone', models.CharField(blank=True, max_length=25, null=True)),
                ('Fax', models.CharField(blank=True, max_length=25, null=True)),
                ('Email', models.CharField(blank=True, max_length=50, null=True)),
                ('AltContact', models.CharField(blank=True, max_length=50, null=True)),
                ('CreditLimit', models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True)),
                ('NPWP', models.CharField(max_length=20)),
                ('KTP', models.CharField(max_length=16)),
                ('DMS_Cust_Name', models.CharField(max_length=80)),
                ('DMS_Cust_Code', models.CharField(max_length=80)),
                ('Special_Cust', models.BooleanField(default=False)),
                ('EFaktur_Name', models.CharField(max_length=80)),
                ('Efaktur_Address', models.CharField(max_length=80)),
                ('Coordinates', models.CharField(blank=True, max_length=50, null=True)),
                ('TimeModified', models.DateTimeField(auto_now=True)),
                ('Parent', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='Customer.customer')),
            ],
        ),
    ]
