feat: 完善安装部署与数字溯源码

This commit is contained in:
Nixevol
2026-07-06 23:26:21 +08:00
parent 7480e4d256
commit 7c6b0bff4c
59 changed files with 2174 additions and 166 deletions
@@ -0,0 +1,8 @@
-- 12 位纯数字追溯码的每日序号状态。
CREATE TABLE `trace_code_daily_sequence` (
`date_key` VARCHAR(6) NOT NULL,
`next_seq` INTEGER NOT NULL DEFAULT 0,
`updated_at` DATETIME(3) NOT NULL,
PRIMARY KEY (`date_key`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
+8
View File
@@ -336,6 +336,14 @@ model TraceCode {
@@map("trace_code")
}
model TraceCodeDailySequence {
dateKey String @id @map("date_key") @db.VarChar(6)
nextSeq Int @default(0) @map("next_seq")
updatedAt DateTime @updatedAt @map("updated_at")
@@map("trace_code_daily_sequence")
}
model BlockchainProof {
id Int @id @default(autoincrement())
traceCodeId BigInt @map("trace_code_id")