Skip to content

Commit

Permalink
feat(db): add category field to transaction model
Browse files Browse the repository at this point in the history
  • Loading branch information
PJColombo committed Aug 17, 2024
1 parent f17662a commit a6d0552
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "transaction" ADD COLUMN "category" "category" NOT NULL DEFAULT 'other';
1 change: 1 addition & 0 deletions packages/db/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ model Transaction {
maxFeePerBlobGas Decimal @map("max_fee_per_blob_gas") @db.Decimal(100, 0)
gasPrice Decimal @map("gas_price") @db.Decimal(100, 0)
blobAsCalldataGasUsed Decimal @map("blob_as_calldata_gas_used") @db.Decimal(100, 0)
category Category @default(OTHER)
rollup Rollup?
insertedAt DateTime @default(now()) @map("inserted_at")
updatedAt DateTime @default(now()) @map("updated_at")
Expand Down

0 comments on commit a6d0552

Please sign in to comment.