修改外键约束
This commit is contained in:
parent
4f102eb26b
commit
900eb0fa71
@ -34,8 +34,8 @@ class Negotiation(models.Model):
|
|||||||
('abandoned', '已放弃'),
|
('abandoned', '已放弃'),
|
||||||
]
|
]
|
||||||
|
|
||||||
creator = models.ForeignKey('Creator', on_delete=models.CASCADE)
|
creator = models.ForeignKey('daren_detail.CreatorProfile', on_delete=models.CASCADE)
|
||||||
product = models.ForeignKey('Product', on_delete=models.CASCADE)
|
product = models.ForeignKey('brands.Product', on_delete=models.CASCADE)
|
||||||
status = models.CharField(max_length=20, choices=STATUS_CHOICES, default='price_negotiation')
|
status = models.CharField(max_length=20, choices=STATUS_CHOICES, default='price_negotiation')
|
||||||
current_round = models.IntegerField(default=1) # 当前谈判轮次
|
current_round = models.IntegerField(default=1) # 当前谈判轮次
|
||||||
context = models.JSONField(default=dict) # 存储谈判上下文(如当前报价)
|
context = models.JSONField(default=dict) # 存储谈判上下文(如当前报价)
|
||||||
|
Loading…
Reference in New Issue
Block a user