fix(contribution-service): 修复synced_adoptions.status字段长度
1.0 planting_orders.status是VARCHAR(30),2.0需要匹配以避免数据截断错误 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
5f76108579
commit
5006a5a170
|
|
@ -0,0 +1,4 @@
|
|||
-- 修复 synced_adoptions.status 字段长度
|
||||
-- 1.0 planting_orders.status 是 VARCHAR(30),需要匹配
|
||||
|
||||
ALTER TABLE "synced_adoptions" ALTER COLUMN "status" TYPE VARCHAR(30);
|
||||
|
|
@ -41,7 +41,7 @@ model SyncedAdoption {
|
|||
accountSequence String @map("account_sequence") @db.VarChar(20)
|
||||
treeCount Int @map("tree_count")
|
||||
adoptionDate DateTime @map("adoption_date") @db.Date
|
||||
status String? @db.VarChar(20)
|
||||
status String? @db.VarChar(30) // 与1.0 planting_orders.status保持一致
|
||||
|
||||
// 贡献值计算参数(从认种时的配置)
|
||||
contributionPerTree Decimal @map("contribution_per_tree") @db.Decimal(20, 10)
|
||||
|
|
|
|||
Loading…
Reference in New Issue