changes
This commit is contained in:
Binary file not shown.
19
app/migrations/0358_people_issued_place.py
Normal file
19
app/migrations/0358_people_issued_place.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 5.1.7 on 2026-01-18 17:27
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('app', '0357_discount_type_method'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='people',
|
||||
name='issued_place',
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.issued_place'),
|
||||
),
|
||||
]
|
||||
@@ -1190,6 +1190,16 @@ class Country(models.Model):
|
||||
db_table = 'country'
|
||||
|
||||
|
||||
class Issued_Place(models.Model):
|
||||
code = models.CharField(max_length=30, null=True, unique=True)
|
||||
name = models.CharField(max_length=100, null=False)
|
||||
create_time = models.DateTimeField(null=True, auto_now_add=True)
|
||||
update_time = models.DateTimeField(null=True, auto_now=True)
|
||||
|
||||
class Meta:
|
||||
db_table = 'issued_place'
|
||||
|
||||
|
||||
class Company(AutoCodeModel):
|
||||
code_prefix = "CP"
|
||||
code_padding = 5
|
||||
@@ -1226,6 +1236,7 @@ class People(AutoCodeModel):
|
||||
legal_type = models.ForeignKey(Legal_Type, null=True, related_name='+', on_delete=models.PROTECT)
|
||||
legal_code = models.CharField(max_length=20, null=True)
|
||||
issued_date = models.DateField(null=True)
|
||||
issued_place = models.ForeignKey(Issued_Place, null=True, related_name='+', on_delete=models.PROTECT)
|
||||
address = models.CharField(max_length=200, null=True)
|
||||
contact_address = models.CharField(max_length=200, null=True)
|
||||
taxcode = models.CharField(max_length=100, null=True)
|
||||
@@ -1274,16 +1285,6 @@ class Document_Audit(models.Model):
|
||||
db_table = 'document_audit'
|
||||
|
||||
|
||||
class Issued_Place(models.Model):
|
||||
code = models.CharField(max_length=30, null=True, unique=True)
|
||||
name = models.CharField(max_length=100, null=False)
|
||||
create_time = models.DateTimeField(null=True, auto_now_add=True)
|
||||
update_time = models.DateTimeField(null=True, auto_now=True)
|
||||
|
||||
class Meta:
|
||||
db_table = 'issued_place'
|
||||
|
||||
|
||||
class Transaction_Phase(models.Model):
|
||||
code = models.CharField(max_length=30, null=True, unique=True)
|
||||
name = models.CharField(max_length=100, null=False)
|
||||
|
||||
Reference in New Issue
Block a user