feat: 完善安装部署与数字溯源码
This commit is contained in:
@@ -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;
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user