<gh_stars>1-10
# Generated by Django 3.1.5 on 2021-02-06 15:19

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='AuthGroup',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=150, unique=True)),
            ],
            options={
                'db_table': 'auth_group',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AuthGroupPermissions',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
            ],
            options={
                'db_table': 'auth_group_permissions',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AuthPermission',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('codename', models.CharField(max_length=100)),
            ],
            options={
                'db_table': 'auth_permission',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AuthUser',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128)),
                ('last_login', models.DateTimeField(blank=True, null=True)),
                ('is_superuser', models.IntegerField()),
                ('username', models.CharField(max_length=150, unique=True)),
                ('first_name', models.CharField(max_length=150)),
                ('last_name', models.CharField(max_length=150)),
                ('email', models.CharField(max_length=254)),
                ('is_staff', models.IntegerField()),
                ('is_active', models.IntegerField()),
                ('date_joined', models.DateTimeField()),
            ],
            options={
                'db_table': 'auth_user',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AuthUserGroups',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
            ],
            options={
                'db_table': 'auth_user_groups',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AuthUserUserPermissions',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
            ],
            options={
                'db_table': 'auth_user_user_permissions',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BBizarea',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('bizarea_cd', models.CharField(blank=True, db_column='bizarea_cd', max_length=50, null=True)),
                ('bizarea_nm', models.CharField(blank=True, db_column='bizarea_nm', max_length=50, null=True)),
                ('bizarea_shnm', models.CharField(blank=True, db_column='bizarea_shnm', max_length=20, null=True)),
                ('biz_no', models.CharField(blank=True, db_column='biz_no', max_length=50, null=True)),
                ('biz_rpr', models.CharField(blank=True, db_column='biz_rpr', max_length=50, null=True)),
                ('str_dt', models.DateTimeField(blank=True, db_column='str_dt', null=True)),
                ('usage_fg', models.CharField(blank=True, db_column='usage_fg', max_length=1, null=True)),
            ],
            options={
                'db_table': 'b_bizarea',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BBizpartner',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('bizpartner_cd', models.CharField(db_column='bizpartner_cd', max_length=50)),
                ('co_id', models.IntegerField(db_column='co_id')),
                ('bizpartner_type', models.CharField(blank=True, db_column='bizpartner_type', max_length=20, null=True)),
                ('biz_nm', models.CharField(blank=True, db_column='biz_nm', max_length=50, null=True)),
                ('bizpartner_nm', models.CharField(blank=True, db_column='bizpartner_nm', max_length=50, null=True)),
                ('cn_cd', models.CharField(blank=True, db_column='cn_cd', max_length=20, null=True)),
                ('cur_cd', models.CharField(blank=True, db_column='cur_cd', max_length=20, null=True)),
                ('bizpartner_stat', models.CharField(blank=True, db_column='bizpartner_stat', max_length=20, null=True)),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt', null=True)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt', null=True)),
                ('usage_fg', models.CharField(blank=True, db_column='usage_fg', max_length=1, null=True)),
            ],
            options={
                'db_table': 'b_bizpartner',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BBizunit',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('bizunit_cd', models.CharField(db_column='bizunit_cd', max_length=50)),
                ('bizunit_nm', models.CharField(blank=True, db_column='bizunit_nm', max_length=50, null=True)),
                ('bizunit_rmrk', models.CharField(blank=True, db_column='bizunit_rmrk', max_length=50, null=True)),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt', null=True)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt', null=True)),
                ('usage_fg', models.CharField(blank=True, db_column='usage_fg', max_length=1, null=True)),
            ],
            options={
                'db_table': 'b_bizunit',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BBom',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('bom_type', models.CharField(db_column='bom_type', max_length=20)),
                ('parent_id', models.IntegerField(db_column='parent_id', default=0)),
                ('top_id', models.IntegerField(db_column='top_id', default=0)),
                ('bom_order', models.IntegerField(db_column='bom_order', default=0)),
                ('bom_level', models.IntegerField(db_column='bom_level', default=0)),
                ('leaf_fg', models.CharField(db_column='leaf_fg', default='1', max_length=10)),
                ('moitem_base', models.FloatField(db_column='moitem_base', default=0.0)),
                ('jaitem_base', models.FloatField(db_column='jaitem_base', default=0.0)),
                ('unit_product', models.CharField(db_column='unit_product', max_length=50)),
                ('free_fg', models.CharField(db_column='free_fg', default='1', max_length=10)),
                ('loss_product', models.FloatField(db_column='loss_product', default=0.0)),
                ('demand_amt', models.FloatField(db_column='demand_amt', default=0.0)),
                ('start_dt', models.CharField(db_column='start_dt', max_length=8)),
                ('end_dt', models.CharField(db_column='end_dt', max_length=8)),
                ('register_dt', models.DateTimeField(db_column='register_dt')),
                ('usage_fg', models.CharField(db_column='usage_fg', default='1', max_length=10)),
            ],
            options={
                'db_table': 'b_bom',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BCo',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('co_cd', models.CharField(blank=True, db_column='co_cd', max_length=50, null=True)),
                ('co_nm', models.CharField(blank=True, db_column='co_nm', max_length=50, null=True)),
                ('co_shnm', models.CharField(blank=True, db_column='co_shnm', max_length=50, null=True)),
                ('co_rpr', models.CharField(blank=True, db_column='co_rpr', max_length=20, null=True)),
                ('co_type', models.CharField(blank=True, db_column='co_type', max_length=20, null=True)),
                ('co_div', models.CharField(blank=True, db_column='co_div', max_length=20, null=True)),
                ('co_estdt', models.DateTimeField(blank=True, db_column='co_estdt', null=True)),
                ('co_strdt', models.DateTimeField(blank=True, db_column='co_strdt', null=True)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt')),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt')),
                ('usage_fg', models.CharField(db_column='usage_fg', default='Y', max_length=1)),
            ],
            options={
                'db_table': 'b_co',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BFactory',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('factory_cd', models.CharField(blank=True, max_length=20, null=True)),
                ('factory_nm', models.CharField(blank=True, max_length=50, null=True)),
                ('factory_rmrk', models.CharField(blank=True, max_length=50, null=True)),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt', null=True)),
                ('updt_dt', models.DateTimeField(auto_now=True, null=True)),
                ('usage_fg', models.CharField(db_column='usage_fg', default='Y', max_length=1)),
            ],
            options={
                'db_table': 'b_factory',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BItem',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('item_cd', models.CharField(db_column='item_cd', max_length=50)),
                ('item_nm', models.CharField(blank=True, db_column='item_nm', max_length=50, null=True)),
                ('item_spec', models.CharField(blank=True, db_column='item_spec', max_length=50, null=True)),
                ('phantom_div', models.CharField(blank=True, db_column='phantom_div', max_length=1, null=True)),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt', null=True)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt', null=True)),
                ('usage_fg', models.CharField(db_column='usage_fg', default='Y', max_length=1)),
                ('unit_id', models.IntegerField(db_column='unit_id', default=0)),
                ('bom_fg', models.CharField(db_column='bom_fg', default='0', max_length=8)),
            ],
            options={
                'db_table': 'b_item',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BItemaccnt',
            fields=[
                ('id', models.IntegerField(db_column='id', primary_key=True, serialize=False)),
                ('itemaccnt_cd', models.CharField(db_column='itemaccnt_cd', max_length=50)),
                ('itemaccnt_nm', models.CharField(blank=True, db_column='itemaccnt_nm', max_length=50, null=True)),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt', null=True)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt', null=True)),
                ('usage_fg', models.CharField(db_column='usage_fg', default='Y', max_length=1)),
            ],
            options={
                'db_table': 'b_itemaccnt',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BItemgrp',
            fields=[
                ('id', models.IntegerField(db_column='id', primary_key=True, serialize=False)),
                ('itemgrp_cd', models.CharField(blank=True, db_column='itemgrp_cd', max_length=50, null=True)),
                ('itemgrp_nm', models.CharField(blank=True, db_column='itemgrp_nm', max_length=50, null=True)),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt', null=True)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt', null=True)),
                ('usage_fg', models.CharField(db_column='usage_fg', default='Y', max_length=1)),
            ],
            options={
                'db_table': 'b_itemgrp',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BomDtl',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('invt_asset', models.CharField(blank=True, max_length=20, null=True)),
                ('item_div1', models.CharField(blank=True, max_length=50, null=True)),
                ('revision', models.CharField(blank=True, max_length=20, null=True)),
                ('ip_unit', models.CharField(blank=True, max_length=50, null=True)),
                ('ip_am', models.IntegerField(blank=True, null=True)),
                ('loss', models.IntegerField(blank=True, null=True)),
                ('ip_div', models.CharField(blank=True, max_length=50, null=True)),
                ('fair', models.CharField(blank=True, max_length=50, null=True)),
                ('apply_strdt', models.DateTimeField(blank=True, null=True)),
                ('apply_enddt', models.DateTimeField(blank=True, null=True)),
                ('rmrk', models.CharField(blank=True, max_length=50, null=True)),
                ('cnt', models.CharField(blank=True, max_length=50, null=True)),
                ('crtdt', models.DateTimeField(blank=True, null=True)),
                ('updt_user', models.CharField(blank=True, max_length=50, null=True)),
                ('udt_dt', models.DateTimeField(blank=True, null=True)),
            ],
            options={
                'db_table': 'bom_dtl',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BUser',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('user_id', models.CharField(db_column='user_id', max_length=50)),
                ('user_nm', models.CharField(blank=True, db_column='user_nm', max_length=50, null=True)),
                ('psswd', models.CharField(db_column='psswd', max_length=255)),
                ('email', models.CharField(blank=True, db_column='email', max_length=255, null=True)),
                ('phoneno', models.CharField(blank=True, db_column='phoneno', max_length=20, null=True)),
                ('insrt_id', models.IntegerField(blank=True, db_column='insrt_id', null=True)),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt', null=True)),
                ('updt_id', models.IntegerField(blank=True, db_column='updt_id', null=True)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt', null=True)),
                ('usage_fg', models.CharField(blank=True, db_column='usage_fg', max_length=1, null=True)),
            ],
            options={
                'db_table': 'b_user',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BWorkcenter',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('workcenter_cd', models.CharField(blank=True, max_length=50, null=True)),
                ('workcenter_nm', models.CharField(blank=True, max_length=50, null=True)),
                ('cstctr_id', models.CharField(blank=True, max_length=50, null=True)),
                ('insrt_dt', models.DateTimeField(blank=True, null=True)),
                ('updt_dt', models.DateTimeField(blank=True, null=True)),
                ('usage_fg', models.CharField(blank=True, max_length=1, null=True)),
            ],
            options={
                'db_table': 'b_workcenter',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='CbCodeDtl',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('type_cd', models.CharField(db_column='type_cd', max_length=20)),
                ('code_cd', models.CharField(db_column='code_cd', max_length=20)),
                ('cd_nm', models.CharField(db_column='cd_nm', max_length=50)),
                ('cd_nmen', models.CharField(db_column='cd_nmen', max_length=50)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt')),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt')),
                ('usage_fg', models.CharField(db_column='usage_fg', default='Y', max_length=1)),
            ],
            options={
                'db_table': 'cb_code_dtl',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='CbCodeHdr',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('type_cd', models.CharField(db_column='type_cd', max_length=20)),
                ('type_nm', models.CharField(db_column='type_nm', max_length=50)),
                ('type_nmen', models.CharField(db_column='type_nmen', max_length=50)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt')),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt')),
                ('usage_fg', models.CharField(db_column='usage_fg', default='Y', max_length=1)),
            ],
            options={
                'db_table': 'cb_code_hdr',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='CbCostCenter',
            fields=[
                ('id', models.IntegerField(primary_key=True, serialize=False)),
                ('cstctr_cd', models.CharField(blank=True, max_length=50, null=True)),
                ('cstctr_nm', models.CharField(blank=True, max_length=50, null=True)),
                ('bizarea_id', models.IntegerField(blank=True, null=True)),
                ('bizunit_id', models.IntegerField(blank=True, null=True)),
                ('factory_id', models.IntegerField(blank=True, null=True)),
                ('cstctr_type', models.CharField(blank=True, max_length=50, null=True)),
                ('cstctr_dir_div', models.CharField(blank=True, max_length=50, null=True)),
                ('updt_dt', models.DateTimeField(blank=True, null=True)),
                ('insrt_dt', models.DateTimeField(blank=True, null=True)),
                ('usage_fg', models.CharField(blank=True, max_length=1, null=True)),
            ],
            options={
                'db_table': 'cb_cost_center',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='CcItempermanucostIf',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('ipmc_ym', models.DateTimeField(blank=True, db_column='ipmc_ym', null=True)),
                ('ipmc_version', models.CharField(db_column='ipmc_version', max_length=50)),
                ('moitem_id', models.IntegerField(db_column='moitem_id', default=0)),
                ('ipmc_cost', models.IntegerField(db_column='ipmc_cost', default=0)),
            ],
            options={
                'db_table': 'cc_itempermanucost_if',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='CcManucostIf',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('manucost_ym', models.DateTimeField(blank=True, db_column='manucost_ym', null=True)),
                ('manucost_price', models.IntegerField(db_column='manucost_price', default=0)),
                ('mngmt_1', models.CharField(db_column='mngmt_1', default='0', max_length=50)),
            ],
            options={
                'db_table': 'cc_manucost_if',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='CcMaterialcostIf',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('mc_ym', models.DateTimeField(blank=True, db_column='mc_ym', null=True)),
                ('mc_version', models.CharField(db_column='mc_version', max_length=50)),
                ('jaiitem_id', models.IntegerField(db_column='jaiitem_id', default=0)),
                ('moitem_id', models.IntegerField(db_column='moitem_id', default=0)),
                ('mc_amount', models.IntegerField(db_column='mc_amount', default=0)),
                ('mc_price', models.IntegerField(db_column='mc_price', default=0)),
            ],
            options={
                'db_table': 'cc_materialcost_if',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='CcProductcostpaymentIf',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('wanitem_id', models.IntegerField(db_column='wanitem_id', default=0)),
                ('basicicstoc_amt', models.IntegerField(db_column='basicicstoc_amt', default=0)),
                ('basicicstoc_price', models.IntegerField(db_column='basicicstoc_price', default=0)),
                ('productionreceipt_amt', models.IntegerField(db_column='productionreceipt_amt', default=0)),
                ('productionreceipt_price', models.IntegerField(db_column='productionreceipt_price', default=0)),
                ('sell_amt', models.IntegerField(db_column='sell_amt', default=0)),
                ('sell_cost', models.IntegerField(db_column='sell_cost', default=0)),
                ('loss_amt', models.IntegerField(db_column='loss_amt', default=0)),
                ('loss_cost', models.IntegerField(db_column='loss_cost', default=0)),
                ('development_amt', models.IntegerField(db_column='development_amt', default=0)),
                ('development_cost', models.IntegerField(db_column='development_cost', default=0)),
                ('endingstock_amt', models.IntegerField(db_column='endingstock_amt', default=0)),
                ('endingstock_cost', models.IntegerField(db_column='endingstock_cost', default=0)),
            ],
            options={
                'db_table': 'cc_productcostpayment_if',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='DjangoAdminLog',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('action_time', models.DateTimeField()),
                ('object_id', models.TextField(blank=True, null=True)),
                ('object_repr', models.CharField(max_length=200)),
                ('action_flag', models.PositiveSmallIntegerField()),
                ('change_message', models.TextField()),
            ],
            options={
                'db_table': 'django_admin_log',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='DjangoContentType',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('app_label', models.CharField(max_length=100)),
                ('model', models.CharField(max_length=100)),
            ],
            options={
                'db_table': 'django_content_type',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='DjangoMigrations',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('app', models.CharField(max_length=255)),
                ('name', models.CharField(max_length=255)),
                ('applied', models.DateTimeField()),
            ],
            options={
                'db_table': 'django_migrations',
                'managed': False,
            },
        ),
    ]

# Generated by Django 3.1.5 on 2021-02-06 15:19

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='AuthGroup',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=150, unique=True)),
            ],
            options={
                'db_table': 'auth_group',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AuthGroupPermissions',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
            ],
            options={
                'db_table': 'auth_group_permissions',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AuthPermission',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('codename', models.CharField(max_length=100)),
            ],
            options={
                'db_table': 'auth_permission',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AuthUser',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128)),
                ('last_login', models.DateTimeField(blank=True, null=True)),
                ('is_superuser', models.IntegerField()),
                ('username', models.CharField(max_length=150, unique=True)),
                ('first_name', models.CharField(max_length=150)),
                ('last_name', models.CharField(max_length=150)),
                ('email', models.CharField(max_length=254)),
                ('is_staff', models.IntegerField()),
                ('is_active', models.IntegerField()),
                ('date_joined', models.DateTimeField()),
            ],
            options={
                'db_table': 'auth_user',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AuthUserGroups',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
            ],
            options={
                'db_table': 'auth_user_groups',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AuthUserUserPermissions',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
            ],
            options={
                'db_table': 'auth_user_user_permissions',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BBizarea',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('bizarea_cd', models.CharField(blank=True, db_column='bizarea_cd', max_length=50, null=True)),
                ('bizarea_nm', models.CharField(blank=True, db_column='bizarea_nm', max_length=50, null=True)),
                ('bizarea_shnm', models.CharField(blank=True, db_column='bizarea_shnm', max_length=20, null=True)),
                ('biz_no', models.CharField(blank=True, db_column='biz_no', max_length=50, null=True)),
                ('biz_rpr', models.CharField(blank=True, db_column='biz_rpr', max_length=50, null=True)),
                ('str_dt', models.DateTimeField(blank=True, db_column='str_dt', null=True)),
                ('usage_fg', models.CharField(blank=True, db_column='usage_fg', max_length=1, null=True)),
            ],
            options={
                'db_table': 'b_bizarea',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BBizpartner',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('bizpartner_cd', models.CharField(db_column='bizpartner_cd', max_length=50)),
                ('co_id', models.IntegerField(db_column='co_id')),
                ('bizpartner_type', models.CharField(blank=True, db_column='bizpartner_type', max_length=20, null=True)),
                ('biz_nm', models.CharField(blank=True, db_column='biz_nm', max_length=50, null=True)),
                ('bizpartner_nm', models.CharField(blank=True, db_column='bizpartner_nm', max_length=50, null=True)),
                ('cn_cd', models.CharField(blank=True, db_column='cn_cd', max_length=20, null=True)),
                ('cur_cd', models.CharField(blank=True, db_column='cur_cd', max_length=20, null=True)),
                ('bizpartner_stat', models.CharField(blank=True, db_column='bizpartner_stat', max_length=20, null=True)),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt', null=True)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt', null=True)),
                ('usage_fg', models.CharField(blank=True, db_column='usage_fg', max_length=1, null=True)),
            ],
            options={
                'db_table': 'b_bizpartner',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BBizunit',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('bizunit_cd', models.CharField(db_column='bizunit_cd', max_length=50)),
                ('bizunit_nm', models.CharField(blank=True, db_column='bizunit_nm', max_length=50, null=True)),
                ('bizunit_rmrk', models.CharField(blank=True, db_column='bizunit_rmrk', max_length=50, null=True)),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt', null=True)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt', null=True)),
                ('usage_fg', models.CharField(blank=True, db_column='usage_fg', max_length=1, null=True)),
            ],
            options={
                'db_table': 'b_bizunit',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BBom',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('bom_type', models.CharField(db_column='bom_type', max_length=20)),
                ('parent_id', models.IntegerField(db_column='parent_id', default=0)),
                ('top_id', models.IntegerField(db_column='top_id', default=0)),
                ('bom_order', models.IntegerField(db_column='bom_order', default=0)),
                ('bom_level', models.IntegerField(db_column='bom_level', default=0)),
                ('leaf_fg', models.CharField(db_column='leaf_fg', default='1', max_length=10)),
                ('moitem_base', models.FloatField(db_column='moitem_base', default=0.0)),
                ('jaitem_base', models.FloatField(db_column='jaitem_base', default=0.0)),
                ('unit_product', models.CharField(db_column='unit_product', max_length=50)),
                ('free_fg', models.CharField(db_column='free_fg', default='1', max_length=10)),
                ('loss_product', models.FloatField(db_column='loss_product', default=0.0)),
                ('demand_amt', models.FloatField(db_column='demand_amt', default=0.0)),
                ('start_dt', models.CharField(db_column='start_dt', max_length=8)),
                ('end_dt', models.CharField(db_column='end_dt', max_length=8)),
                ('register_dt', models.DateTimeField(db_column='register_dt')),
                ('usage_fg', models.CharField(db_column='usage_fg', default='1', max_length=10)),
            ],
            options={
                'db_table': 'b_bom',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BCo',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('co_cd', models.CharField(blank=True, db_column='co_cd', max_length=50, null=True)),
                ('co_nm', models.CharField(blank=True, db_column='co_nm', max_length=50, null=True)),
                ('co_shnm', models.CharField(blank=True, db_column='co_shnm', max_length=50, null=True)),
                ('co_rpr', models.CharField(blank=True, db_column='co_rpr', max_length=20, null=True)),
                ('co_type', models.CharField(blank=True, db_column='co_type', max_length=20, null=True)),
                ('co_div', models.CharField(blank=True, db_column='co_div', max_length=20, null=True)),
                ('co_estdt', models.DateTimeField(blank=True, db_column='co_estdt', null=True)),
                ('co_strdt', models.DateTimeField(blank=True, db_column='co_strdt', null=True)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt')),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt')),
                ('usage_fg', models.CharField(db_column='usage_fg', default='Y', max_length=1)),
            ],
            options={
                'db_table': 'b_co',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BFactory',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('factory_cd', models.CharField(blank=True, max_length=20, null=True)),
                ('factory_nm', models.CharField(blank=True, max_length=50, null=True)),
                ('factory_rmrk', models.CharField(blank=True, max_length=50, null=True)),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt', null=True)),
                ('updt_dt', models.DateTimeField(auto_now=True, null=True)),
                ('usage_fg', models.CharField(db_column='usage_fg', default='Y', max_length=1)),
            ],
            options={
                'db_table': 'b_factory',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BItem',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('item_cd', models.CharField(db_column='item_cd', max_length=50)),
                ('item_nm', models.CharField(blank=True, db_column='item_nm', max_length=50, null=True)),
                ('item_spec', models.CharField(blank=True, db_column='item_spec', max_length=50, null=True)),
                ('phantom_div', models.CharField(blank=True, db_column='phantom_div', max_length=1, null=True)),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt', null=True)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt', null=True)),
                ('usage_fg', models.CharField(db_column='usage_fg', default='Y', max_length=1)),
                ('unit_id', models.IntegerField(db_column='unit_id', default=0)),
                ('bom_fg', models.CharField(db_column='bom_fg', default='0', max_length=8)),
            ],
            options={
                'db_table': 'b_item',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BItemaccnt',
            fields=[
                ('id', models.IntegerField(db_column='id', primary_key=True, serialize=False)),
                ('itemaccnt_cd', models.CharField(db_column='itemaccnt_cd', max_length=50)),
                ('itemaccnt_nm', models.CharField(blank=True, db_column='itemaccnt_nm', max_length=50, null=True)),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt', null=True)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt', null=True)),
                ('usage_fg', models.CharField(db_column='usage_fg', default='Y', max_length=1)),
            ],
            options={
                'db_table': 'b_itemaccnt',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BItemgrp',
            fields=[
                ('id', models.IntegerField(db_column='id', primary_key=True, serialize=False)),
                ('itemgrp_cd', models.CharField(blank=True, db_column='itemgrp_cd', max_length=50, null=True)),
                ('itemgrp_nm', models.CharField(blank=True, db_column='itemgrp_nm', max_length=50, null=True)),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt', null=True)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt', null=True)),
                ('usage_fg', models.CharField(db_column='usage_fg', default='Y', max_length=1)),
            ],
            options={
                'db_table': 'b_itemgrp',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BomDtl',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('invt_asset', models.CharField(blank=True, max_length=20, null=True)),
                ('item_div1', models.CharField(blank=True, max_length=50, null=True)),
                ('revision', models.CharField(blank=True, max_length=20, null=True)),
                ('ip_unit', models.CharField(blank=True, max_length=50, null=True)),
                ('ip_am', models.IntegerField(blank=True, null=True)),
                ('loss', models.IntegerField(blank=True, null=True)),
                ('ip_div', models.CharField(blank=True, max_length=50, null=True)),
                ('fair', models.CharField(blank=True, max_length=50, null=True)),
                ('apply_strdt', models.DateTimeField(blank=True, null=True)),
                ('apply_enddt', models.DateTimeField(blank=True, null=True)),
                ('rmrk', models.CharField(blank=True, max_length=50, null=True)),
                ('cnt', models.CharField(blank=True, max_length=50, null=True)),
                ('crtdt', models.DateTimeField(blank=True, null=True)),
                ('updt_user', models.CharField(blank=True, max_length=50, null=True)),
                ('udt_dt', models.DateTimeField(blank=True, null=True)),
            ],
            options={
                'db_table': 'bom_dtl',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BUser',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('user_id', models.CharField(db_column='user_id', max_length=50)),
                ('user_nm', models.CharField(blank=True, db_column='user_nm', max_length=50, null=True)),
                ('psswd', models.CharField(db_column='psswd', max_length=255)),
                ('email', models.CharField(blank=True, db_column='email', max_length=255, null=True)),
                ('phoneno', models.CharField(blank=True, db_column='phoneno', max_length=20, null=True)),
                ('insrt_id', models.IntegerField(blank=True, db_column='insrt_id', null=True)),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt', null=True)),
                ('updt_id', models.IntegerField(blank=True, db_column='updt_id', null=True)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt', null=True)),
                ('usage_fg', models.CharField(blank=True, db_column='usage_fg', max_length=1, null=True)),
            ],
            options={
                'db_table': 'b_user',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='BWorkcenter',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('workcenter_cd', models.CharField(blank=True, max_length=50, null=True)),
                ('workcenter_nm', models.CharField(blank=True, max_length=50, null=True)),
                ('cstctr_id', models.CharField(blank=True, max_length=50, null=True)),
                ('insrt_dt', models.DateTimeField(blank=True, null=True)),
                ('updt_dt', models.DateTimeField(blank=True, null=True)),
                ('usage_fg', models.CharField(blank=True, max_length=1, null=True)),
            ],
            options={
                'db_table': 'b_workcenter',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='CbCodeDtl',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('type_cd', models.CharField(db_column='type_cd', max_length=20)),
                ('code_cd', models.CharField(db_column='code_cd', max_length=20)),
                ('cd_nm', models.CharField(db_column='cd_nm', max_length=50)),
                ('cd_nmen', models.CharField(db_column='cd_nmen', max_length=50)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt')),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt')),
                ('usage_fg', models.CharField(db_column='usage_fg', default='Y', max_length=1)),
            ],
            options={
                'db_table': 'cb_code_dtl',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='CbCodeHdr',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('type_cd', models.CharField(db_column='type_cd', max_length=20)),
                ('type_nm', models.CharField(db_column='type_nm', max_length=50)),
                ('type_nmen', models.CharField(db_column='type_nmen', max_length=50)),
                ('updt_dt', models.DateTimeField(auto_now=True, db_column='updt_dt')),
                ('insrt_dt', models.DateTimeField(auto_now_add=True, db_column='insrt_dt')),
                ('usage_fg', models.CharField(db_column='usage_fg', default='Y', max_length=1)),
            ],
            options={
                'db_table': 'cb_code_hdr',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='CbCostCenter',
            fields=[
                ('id', models.IntegerField(primary_key=True, serialize=False)),
                ('cstctr_cd', models.CharField(blank=True, max_length=50, null=True)),
                ('cstctr_nm', models.CharField(blank=True, max_length=50, null=True)),
                ('bizarea_id', models.IntegerField(blank=True, null=True)),
                ('bizunit_id', models.IntegerField(blank=True, null=True)),
                ('factory_id', models.IntegerField(blank=True, null=True)),
                ('cstctr_type', models.CharField(blank=True, max_length=50, null=True)),
                ('cstctr_dir_div', models.CharField(blank=True, max_length=50, null=True)),
                ('updt_dt', models.DateTimeField(blank=True, null=True)),
                ('insrt_dt', models.DateTimeField(blank=True, null=True)),
                ('usage_fg', models.CharField(blank=True, max_length=1, null=True)),
            ],
            options={
                'db_table': 'cb_cost_center',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='CcItempermanucostIf',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('ipmc_ym', models.DateTimeField(blank=True, db_column='ipmc_ym', null=True)),
                ('ipmc_version', models.CharField(db_column='ipmc_version', max_length=50)),
                ('moitem_id', models.IntegerField(db_column='moitem_id', default=0)),
                ('ipmc_cost', models.IntegerField(db_column='ipmc_cost', default=0)),
            ],
            options={
                'db_table': 'cc_itempermanucost_if',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='CcManucostIf',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('manucost_ym', models.DateTimeField(blank=True, db_column='manucost_ym', null=True)),
                ('manucost_price', models.IntegerField(db_column='manucost_price', default=0)),
                ('mngmt_1', models.CharField(db_column='mngmt_1', default='0', max_length=50)),
            ],
            options={
                'db_table': 'cc_manucost_if',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='CcMaterialcostIf',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('mc_ym', models.DateTimeField(blank=True, db_column='mc_ym', null=True)),
                ('mc_version', models.CharField(db_column='mc_version', max_length=50)),
                ('jaiitem_id', models.IntegerField(db_column='jaiitem_id', default=0)),
                ('moitem_id', models.IntegerField(db_column='moitem_id', default=0)),
                ('mc_amount', models.IntegerField(db_column='mc_amount', default=0)),
                ('mc_price', models.IntegerField(db_column='mc_price', default=0)),
            ],
            options={
                'db_table': 'cc_materialcost_if',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='CcProductcostpaymentIf',
            fields=[
                ('id', models.AutoField(db_column='id', primary_key=True, serialize=False)),
                ('wanitem_id', models.IntegerField(db_column='wanitem_id', default=0)),
                ('basicicstoc_amt', models.IntegerField(db_column='basicicstoc_amt', default=0)),
                ('basicicstoc_price', models.IntegerField(db_column='basicicstoc_price', default=0)),
                ('productionreceipt_amt', models.IntegerField(db_column='productionreceipt_amt', default=0)),
                ('productionreceipt_price', models.IntegerField(db_column='productionreceipt_price', default=0)),
                ('sell_amt', models.IntegerField(db_column='sell_amt', default=0)),
                ('sell_cost', models.IntegerField(db_column='sell_cost', default=0)),
                ('loss_amt', models.IntegerField(db_column='loss_amt', default=0)),
                ('loss_cost', models.IntegerField(db_column='loss_cost', default=0)),
                ('development_amt', models.IntegerField(db_column='development_amt', default=0)),
                ('development_cost', models.IntegerField(db_column='development_cost', default=0)),
                ('endingstock_amt', models.IntegerField(db_column='endingstock_amt', default=0)),
                ('endingstock_cost', models.IntegerField(db_column='endingstock_cost', default=0)),
            ],
            options={
                'db_table': 'cc_productcostpayment_if',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='DjangoAdminLog',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('action_time', models.DateTimeField()),
                ('object_id', models.TextField(blank=True, null=True)),
                ('object_repr', models.CharField(max_length=200)),
                ('action_flag', models.PositiveSmallIntegerField()),
                ('change_message', models.TextField()),
            ],
            options={
                'db_table': 'django_admin_log',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='DjangoContentType',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('app_label', models.CharField(max_length=100)),
                ('model', models.CharField(max_length=100)),
            ],
            options={
                'db_table': 'django_content_type',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='DjangoMigrations',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('app', models.CharField(max_length=255)),
                ('name', models.CharField(max_length=255)),
                ('applied', models.DateTimeField()),
            ],
            options={
                'db_table': 'django_migrations',
                'managed': False,
            },
        ),
    ]
# Generated by Django 3.1.5 on 2021-02-06 15:19