model StakeTx {
txId String @id @map("_id")
stakeId String? @unique @db.ObjectId
sourceAddress String
targetAddress String
amount Int
fee Int
confirmed Boolean @default(false)
createdAt DateTime?
stake Stake? @relation(fields: [stakeId], references: [id])
unstake Unstake?
@@index([txId, stakeId])
@@index([sourceAddress, targetAddress])
@@index([confirmed])
@@map("stake_txs")
}
model StakeTx {
txId String @id @map("_id")
stakeId String? @unique @db.ObjectId
sourceAddress String
targetAddress String
amount Int
fee Int
confirmed Boolean @default(false)
createdAt DateTime?
stake Stake? @relation(fields: [stakeId], references: [id])
unstake Unstake?
@@index([txId, stakeId])
@@index([sourceAddress, targetAddress])
@@index([confirmed])
@@map("stake_txs")
}