diff --git a/packages/db/prisma/migrations/20240817121202_add_category_field_to_tx_model/migration.sql b/packages/db/prisma/migrations/20240817121202_add_category_field_to_tx_model/migration.sql new file mode 100644 index 000000000..4703478fa --- /dev/null +++ b/packages/db/prisma/migrations/20240817121202_add_category_field_to_tx_model/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "transaction" ADD COLUMN "category" "category" NOT NULL DEFAULT 'other'; diff --git a/packages/db/prisma/schema.prisma b/packages/db/prisma/schema.prisma index 0a44a7e99..c71754f11 100644 --- a/packages/db/prisma/schema.prisma +++ b/packages/db/prisma/schema.prisma @@ -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")