
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;

