Files
spend-sparrow/migration/004_transaction.up.sql
Tim Wundenberg c2222c1f94
Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 5m0s
feat(transaction): #66 implement transactions
2025-05-14 23:34:52 +02:00

18 lines
328 B
SQL

CREATE TABLE "transaction" (
id TEXT NOT NULL UNIQUE PRIMARY KEY,
user_id TEXT NOT NULL,
timestamp DATETIME NOT NULL,
note TEXT NOT NULL,
account_id TEXT,
treasure_chest_id TEXT,
value INTEGER NOT NULL,
created_at DATETIME NOT NULL,
created_by TEXT NOT NULL,
updated_at DATETIME,
updated_by TEXT
) WITHOUT ROWID;