You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
163 lines
10 KiB
163 lines
10 KiB
# Generated by Django 3.2.16 on 2023-04-01 21:07
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='City',
|
|
fields=[
|
|
('id', models.IntegerField(primary_key=True, serialize=False)),
|
|
('c_name', models.CharField(max_length=30, verbose_name='城市名称')),
|
|
],
|
|
options={
|
|
'verbose_name': '城市表',
|
|
'verbose_name_plural': '城市表',
|
|
'db_table': 'city',
|
|
'ordering': ['id'],
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='CustomerModel',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('delete_flag', models.CharField(default='0', help_text='是否启用', max_length=1, verbose_name='是否启用')),
|
|
('create_time', models.DateTimeField(auto_now_add=True, help_text='创建时间', verbose_name='创建时间')),
|
|
('update_time', models.DateTimeField(auto_now=True, help_text='更新时间', verbose_name='更新时间')),
|
|
('name', models.CharField(max_length=100, unique=True, verbose_name='客户名称')),
|
|
('mobile', models.CharField(blank=True, max_length=11, null=True, verbose_name='手机号码')),
|
|
('phone', models.CharField(blank=True, max_length=22, null=True, verbose_name='联系电话')),
|
|
('contacts_name', models.CharField(blank=True, max_length=22, null=True, verbose_name='联系人名')),
|
|
('email', models.CharField(blank=True, max_length=50, null=True, verbose_name='电子邮箱')),
|
|
('ratepayer_number', models.CharField(blank=True, max_length=50, null=True, verbose_name='纳税人识别号码')),
|
|
('bank', models.CharField(blank=True, max_length=50, null=True, verbose_name='开户银行')),
|
|
('account_number', models.CharField(blank=True, max_length=50, null=True, verbose_name='银行账号')),
|
|
('nation', models.CharField(blank=True, max_length=50, null=True, verbose_name='国家')),
|
|
('province', models.CharField(blank=True, max_length=50, null=True, verbose_name='省份')),
|
|
('city', models.CharField(blank=True, max_length=50, null=True, verbose_name='城市')),
|
|
('address', models.CharField(blank=True, max_length=50, null=True, verbose_name='详细地址')),
|
|
('remark', models.CharField(blank=True, max_length=512, null=True, verbose_name='备注')),
|
|
('init_receivable', models.DecimalField(blank=True, decimal_places=2, max_digits=20, null=True, verbose_name='初期应收')),
|
|
('current_receivable', models.DecimalField(blank=True, decimal_places=2, max_digits=20, null=True, verbose_name='末期应收')),
|
|
('order_number', models.IntegerField(default=100, verbose_name='排序号码')),
|
|
],
|
|
options={
|
|
'verbose_name': '客户',
|
|
'verbose_name_plural': '客户',
|
|
'db_table': 't_customer',
|
|
'ordering': ['order_number', 'id'],
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='Nation',
|
|
fields=[
|
|
('id', models.IntegerField(primary_key=True, serialize=False)),
|
|
('n_name', models.CharField(max_length=30, verbose_name='国家名称')),
|
|
],
|
|
options={
|
|
'verbose_name': '国家表',
|
|
'verbose_name_plural': '国家表',
|
|
'db_table': 'nation',
|
|
'ordering': ['id'],
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='Province',
|
|
fields=[
|
|
('id', models.IntegerField(primary_key=True, serialize=False)),
|
|
('p_name', models.CharField(max_length=30, verbose_name='省份名称')),
|
|
],
|
|
options={
|
|
'verbose_name': '省份表',
|
|
'verbose_name_plural': '省份表',
|
|
'db_table': 'province',
|
|
'ordering': ['id'],
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='SettlementAccountModel',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('delete_flag', models.CharField(default='0', help_text='是否启用', max_length=1, verbose_name='是否启用')),
|
|
('create_time', models.DateTimeField(auto_now_add=True, help_text='创建时间', verbose_name='创建时间')),
|
|
('update_time', models.DateTimeField(auto_now=True, help_text='更新时间', verbose_name='更新时间')),
|
|
('name', models.CharField(max_length=100, unique=True, verbose_name='仓库名称')),
|
|
('number_code', models.CharField(max_length=28, unique=True, verbose_name='编号')),
|
|
('remark', models.CharField(blank=True, max_length=512, null=True, verbose_name='备注')),
|
|
('init_amount', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='初期金额')),
|
|
('balance', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='余额')),
|
|
('order_number', models.IntegerField(default=100, verbose_name='排序号码')),
|
|
('is_default', models.BooleanField(default=False, verbose_name='是否默认')),
|
|
],
|
|
options={
|
|
'verbose_name': '结算账户',
|
|
'verbose_name_plural': '结算账户',
|
|
'db_table': 't_settlement_account',
|
|
'ordering': ['order_number', 'id'],
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='SupplierModel',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('delete_flag', models.CharField(default='0', help_text='是否启用', max_length=1, verbose_name='是否启用')),
|
|
('create_time', models.DateTimeField(auto_now_add=True, help_text='创建时间', verbose_name='创建时间')),
|
|
('update_time', models.DateTimeField(auto_now=True, help_text='更新时间', verbose_name='更新时间')),
|
|
('name', models.CharField(max_length=100, unique=True, verbose_name='供应商名称')),
|
|
('mobile', models.CharField(blank=True, max_length=11, null=True, verbose_name='手机号码')),
|
|
('phone', models.CharField(blank=True, max_length=22, null=True, verbose_name='联系电话')),
|
|
('contacts_name', models.CharField(blank=True, max_length=22, null=True, verbose_name='联系人名')),
|
|
('email', models.CharField(blank=True, max_length=50, null=True, verbose_name='电子邮箱')),
|
|
('ratepayer_number', models.CharField(blank=True, max_length=50, null=True, verbose_name='纳税人识别号码')),
|
|
('bank', models.CharField(blank=True, max_length=50, null=True, verbose_name='开户银行')),
|
|
('account_number', models.CharField(blank=True, max_length=50, null=True, verbose_name='银行账号')),
|
|
('nation', models.CharField(blank=True, max_length=50, null=True, verbose_name='国家')),
|
|
('province', models.CharField(blank=True, max_length=50, null=True, verbose_name='省份')),
|
|
('city', models.CharField(blank=True, max_length=50, null=True, verbose_name='城市')),
|
|
('address', models.CharField(blank=True, max_length=50, null=True, verbose_name='详细地址')),
|
|
('remark', models.CharField(blank=True, max_length=512, null=True, verbose_name='备注')),
|
|
('init_pay', models.DecimalField(blank=True, decimal_places=2, default=0, max_digits=20, verbose_name='初期应付')),
|
|
('current_pay', models.DecimalField(blank=True, decimal_places=2, default=0, max_digits=20, verbose_name='末期应付')),
|
|
('order_number', models.IntegerField(default=100, verbose_name='排序号码')),
|
|
],
|
|
options={
|
|
'verbose_name': '供应商',
|
|
'verbose_name_plural': '供应商',
|
|
'db_table': 't_supplier',
|
|
'ordering': ['order_number', 'id'],
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='WarehouseModel',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('delete_flag', models.CharField(default='0', help_text='是否启用', max_length=1, verbose_name='是否启用')),
|
|
('create_time', models.DateTimeField(auto_now_add=True, help_text='创建时间', verbose_name='创建时间')),
|
|
('update_time', models.DateTimeField(auto_now=True, help_text='更新时间', verbose_name='更新时间')),
|
|
('name', models.CharField(max_length=100, unique=True, verbose_name='仓库名称')),
|
|
('nation', models.CharField(blank=True, max_length=50, null=True, verbose_name='国家')),
|
|
('province', models.CharField(blank=True, max_length=50, null=True, verbose_name='省份')),
|
|
('city', models.CharField(blank=True, max_length=50, null=True, verbose_name='城市')),
|
|
('address', models.CharField(blank=True, max_length=50, null=True, verbose_name='详细地址')),
|
|
('remark', models.CharField(blank=True, max_length=512, null=True, verbose_name='备注')),
|
|
('warehouse_fee', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='仓储费用(元/天/KG)')),
|
|
('truckage', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='搬运费用')),
|
|
('order_number', models.IntegerField(default=100, verbose_name='排序号码')),
|
|
('is_default', models.BooleanField(default=False, verbose_name='是否默认的仓库')),
|
|
],
|
|
options={
|
|
'verbose_name': '仓库',
|
|
'verbose_name_plural': '仓库',
|
|
'db_table': 't_warehouse',
|
|
'ordering': ['order_number', 'id'],
|
|
},
|
|
),
|
|
]
|