# Generated by Django 5.0.2 on 2024-02-09 07:06

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


class Migration(migrations.Migration):

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

    operations = [
        migrations.CreateModel(
            name='CigarProduct',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('PRODUCT_NAME', models.CharField(blank=True, max_length=255, null=True)),
                ('PRICE', models.FloatField()),
                ('DISCOUNT', models.FloatField()),
                ('IS_AVAILABLE', models.BooleanField(default=True)),
                ('SHIPPING_FEE', models.FloatField()),
                ('CREATED_AT', models.DateTimeField(auto_now_add=True)),
                ('UPDATED_AT', models.DateTimeField(auto_now=True)),
            ],
            options={
                'db_table': 'cigar_product',
            },
        ),
        migrations.CreateModel(
            name='ProductMaterial',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('MATERIAL_NAME', models.CharField(blank=True, max_length=100, null=True)),
                ('IS_DELETED', models.BooleanField(default=False)),
                ('CREATED_AT', models.DateTimeField(auto_now_add=True)),
                ('UPDATED_AT', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.AddField(
            model_name='user',
            name='PASSWORD',
            field=models.CharField(blank=True, max_length=255, null=True),
        ),
        migrations.AlterField(
            model_name='user',
            name='ADDRESS_1',
            field=models.CharField(blank=True, max_length=255, null=True),
        ),
        migrations.AlterField(
            model_name='user',
            name='NAME',
            field=models.CharField(blank=True, max_length=255, null=True),
        ),
        migrations.CreateModel(
            name='LoginLog',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('LOGIN_DATETIME', models.DateTimeField(blank=True, null=True)),
                ('LOGOUT_DATETIME', models.DateTimeField(blank=True, null=True)),
                ('LOGIN_SESSION', models.TextField(blank=True, null=True)),
                ('IP_ADDRESS', models.CharField(blank=True, max_length=16, null=True)),
                ('LOGIN_STATUS', models.BooleanField(default=True)),
                ('USER', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.user', verbose_name='User')),
            ],
        ),
        migrations.CreateModel(
            name='UserCustomization',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('TEXT', models.CharField(blank=True, max_length=100, null=True)),
                ('DESCRIPTION', models.TextField()),
                ('IS_DELETED', models.BooleanField(default=False)),
                ('CREATED_AT', models.DateTimeField(auto_now_add=True)),
                ('UPDATED_AT', models.DateTimeField(auto_now=True)),
                ('MATERIAL', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.productmaterial', verbose_name='User')),
                ('PRODUCT', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.cigarproduct', verbose_name='User')),
                ('USER', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.user', verbose_name='User')),
            ],
            options={
                'db_table': 'user_customization',
            },
        ),
    ]
