From cbddb42e43ba0f0188b87aff4d1e689d6be42ea4 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Tue, 27 Mar 2012 15:50:22 -0700 Subject: [PATCH] The upcoming Txn DB change. --- SQLiteDatabases.sql | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/SQLiteDatabases.sql b/SQLiteDatabases.sql index 13ad457adf..7efa3eb281 100644 --- a/SQLiteDatabases.sql +++ b/SQLiteDatabases.sql @@ -1,17 +1,15 @@ CREATE TABLE Transactions ( -- transactions in all states TransID CHARACTER(64) PRIMARY KEY, -- in hex + TransType CHARACTER(24), FromAcct CHARACTER(40), -- 20 byte hash of pub key in hex FromSeq BIGINT UNSIGNED, -- account seq - FromLedger BIGINT UNSIGNED, - Identifier BIGINT UNSIGNED, - ToAcct CHARACTER(40), -- 20 byte hash of pub key - Amount BIGINT UNSIGNED, - Fee BIGINT UNSIGNED, + OtherAcct CHARACTER(40), -- 20 byte hash of pub key + Amount BIGINT UNSINGED< -- if newcoin transfer FirstSeen TEXT, -- time first seen CommitSeq BIGINT UNSIGNED, -- ledger commited to, 0 if none Status CHARACTER(1), -- (N)ew, (A)ctive, (C)onflicted, (D)one, (H)eld - Signature BLOB + RawTxn BLOB ); CREATE TABLE PubKeys ( -- holds pub keys for nodes and accounts