feat: split into multiple items

This commit is contained in:
vas3k
2025-05-23 14:33:40 +02:00
parent 289b436236
commit 25c61f0519
17 changed files with 332 additions and 57 deletions

View File

@@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "files" ADD COLUMN "is_splitted" BOOLEAN NOT NULL DEFAULT false;
-- AlterTable
ALTER TABLE "transactions" ADD COLUMN "items" JSONB NOT NULL DEFAULT '[]';

View File

@@ -160,6 +160,7 @@ model File {
mimetype String
metadata Json?
isReviewed Boolean @default(false) @map("is_reviewed")
isSplitted Boolean @default(false) @map("is_splitted")
cachedParseResult Json? @map("cached_parse_result")
createdAt DateTime @default(now()) @map("created_at")
@@ -178,6 +179,7 @@ model Transaction {
convertedTotal Int? @map("converted_total")
convertedCurrencyCode String? @map("converted_currency_code")
type String? @default("expense")
items Json @default("[]")
note String?
files Json @default("[]")
extra Json?