Wallet Provider
ledger
Models
Movement

Movement

Movement with inputs and outputs

Schema

Relations

Prisma definition

model Movement {
  id             String            @map("id") @db.Uuid
  movementTypeId String            @map("movement_type_id") @db.Uuid
  payload        Json              @map("payload") @db.Json
  movementType   MovementType      @relation(fields: [movement-typeId], references: [id], onUpdate: NoAction, onDelete: NoAction)
  snapshots      BalanceSnapshot[] @relation
 
  @@id([id])
  @@map("movements")
}