changes
This commit is contained in:
Binary file not shown.
Binary file not shown.
34
app/migrations/0340_file_hashtag_co_ownership.py
Normal file
34
app/migrations/0340_file_hashtag_co_ownership.py
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
# Generated by Django 5.1.7 on 2025-12-31 02:41
|
||||||
|
|
||||||
|
import django.db.models.deletion
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('app', '0339_cart_index_sale_policy_index'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='file',
|
||||||
|
name='hashtag',
|
||||||
|
field=models.CharField(max_length=200, null=True),
|
||||||
|
),
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='Co_Ownership',
|
||||||
|
fields=[
|
||||||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('code', models.CharField(max_length=30, unique=True)),
|
||||||
|
('create_time', models.DateTimeField(auto_now_add=True, null=True)),
|
||||||
|
('update_time', models.DateTimeField(auto_now=True, null=True)),
|
||||||
|
('people', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.people')),
|
||||||
|
('transaction', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='+', to='app.transaction')),
|
||||||
|
],
|
||||||
|
options={
|
||||||
|
'db_table': 'co_ownership',
|
||||||
|
'unique_together': {('transaction', 'people')},
|
||||||
|
},
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -168,7 +168,6 @@ class Product_Status(models.Model):
|
|||||||
class Meta:
|
class Meta:
|
||||||
db_table = 'product_status'
|
db_table = 'product_status'
|
||||||
|
|
||||||
|
|
||||||
class Customer_Type(models.Model):
|
class Customer_Type(models.Model):
|
||||||
code = models.CharField(max_length=30, null=False, unique=True)
|
code = models.CharField(max_length=30, null=False, unique=True)
|
||||||
name = models.CharField(max_length=100, null=False)
|
name = models.CharField(max_length=100, null=False)
|
||||||
@@ -666,6 +665,7 @@ class File(AutoCodeModel):
|
|||||||
doc_type = models.ForeignKey(Document_Type, null=True, related_name='+', on_delete=models.PROTECT)
|
doc_type = models.ForeignKey(Document_Type, null=True, related_name='+', on_delete=models.PROTECT)
|
||||||
name = models.CharField(max_length=200, null=False)
|
name = models.CharField(max_length=200, null=False)
|
||||||
file = models.CharField(max_length=200, null=False)
|
file = models.CharField(max_length=200, null=False)
|
||||||
|
hashtag= models.CharField(max_length=200, null=True)
|
||||||
size = models.IntegerField(null=False)
|
size = models.IntegerField(null=False)
|
||||||
caption = models.CharField(max_length=200, null=True)
|
caption = models.CharField(max_length=200, null=True)
|
||||||
create_time = models.DateTimeField(null=True, auto_now_add=True)
|
create_time = models.DateTimeField(null=True, auto_now_add=True)
|
||||||
@@ -1958,6 +1958,18 @@ class Transaction_Discount(models.Model):
|
|||||||
db_table = 'transaction_discount'
|
db_table = 'transaction_discount'
|
||||||
unique_together = ('transaction', 'discount')
|
unique_together = ('transaction', 'discount')
|
||||||
|
|
||||||
|
|
||||||
|
class Co_Ownership(models.Model):
|
||||||
|
code = models.CharField(max_length=30, null=False, unique=True)
|
||||||
|
transaction = models.ForeignKey(Transaction, null=False, related_name='+', on_delete=models.PROTECT)
|
||||||
|
people = models.ForeignKey(People, null=False, related_name='+', on_delete=models.PROTECT)
|
||||||
|
create_time = models.DateTimeField(null=True, auto_now_add=True)
|
||||||
|
update_time = models.DateTimeField(null=True, auto_now=True)
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
db_table = 'co_ownership'
|
||||||
|
unique_together = ('transaction', 'people')
|
||||||
|
|
||||||
class Workflow(models.Model):
|
class Workflow(models.Model):
|
||||||
"""
|
"""
|
||||||
Bảng Workflow: Quản lý các luồng chính (multi-flow cho dự án).
|
Bảng Workflow: Quản lý các luồng chính (multi-flow cho dự án).
|
||||||
|
|||||||
Reference in New Issue
Block a user