YWallet stores it's data in an sqlite database.
name: TEXT NOT NULL
seed: TEXT
account_index: INTEGER NOT NULL
spending_key: TEXT
incoming_viewing_key: TEXT NOT NULL UNIQUE
address: TEXT NOT NULL,
diversifiers: ARRAY(INTEGER)
account: Account NOT NULL
txid: BLOB NOT NULL
height: INTEGER NOT NULL
timestamp: INTEGER NOT NULL
value: INTEGER NOT NULL
address: TEXT
memo: TEXT
tx_index: INTEGER
With:
(height, tx_index, account) UNIQUE
height: INTEGER NOT NULL
hash: BLOB NOT NULL
timestamp: INTEGER NOT NULL
sapling_tree: BLOB NOT NULL