mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 13:25:18 +00:00
feat: split into multiple items
This commit is contained in:
@@ -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 '[]';
|
||||
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user