Skip to content

Commit 4598d07

Browse files
committed
Update schema to remove before and after STs details from block
1 parent aa5dd02 commit 4598d07

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

packages/persistance/prisma/schema.prisma

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ model Block {
8989
toMessagesHash String
9090
fromStateRoot String
9191
92-
beforeBlockStateTransitions Json @db.Json
93-
9492
parentHash String? @unique
9593
parent Block? @relation("Parent", fields: [parentHash], references: [hash])
9694
successor Block? @relation("Parent")
@@ -117,12 +115,11 @@ model Batch {
117115
model BlockResult {
118116
blockHash String @id @unique
119117
120-
stateRoot String
121-
blockHashRoot String
122-
witnessedRoots String[]
123-
afterNetworkState Json @db.Json
124-
afterBlockStateTransitions Json @db.Json
125-
blockHashWitness Json @db.Json
118+
stateRoot String
119+
blockHashRoot String
120+
witnessedRoots String[]
121+
afterNetworkState Json @db.Json
122+
blockHashWitness Json @db.Json
126123
127124
block Block? @relation(fields: [blockHash], references: [hash])
128125
StateTransitionBatch StateTransitionBatch[]

0 commit comments

Comments
 (0)