Files
spend-sparrow/migration/002_account.up.sql
Tim Wundenberg 511c4ca22b
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 7m51s
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 3m10s
feat(account): #49 replace group_id with user_id, as data sharing is a whole new complicated topic
2025-05-08 13:20:59 +02:00

18 lines
316 B
SQL

CREATE TABLE account (
id TEXT NOT NULL UNIQUE PRIMARY KEY,
user_id TEXT NOT NULL,
name TEXT NOT NULL,
current_balance int64 NOT NULL,
last_transaction DATETIME,
oink_balance int64 NOT NULL,
created_at DATETIME NOT NULL,
created_by TEXT NOT NULL,
updated_at DATETIME,
updated_by TEXT
) WITHOUT ROWID;