forked from cerc-io/ipld-eth-server
be58dd4ac8
* Add vat_move transformer base * Add vat_move migrations * Add test data for vat_move * Add vat_move transformer to initialisers * Add numeric cast to psql insert of Rad * Add new db schema * Dependency update * Expand abbreviation in repository * Add test suite for vat_move * Add header checking to transformer and mock repository * Remove trailing zero in test data * Fix minor mishaps * Go fmt nitpicking * Refactoring in tests * Add tests covering checked headers stuff (and fix revealed bugs) * go fmt fixes * Implement batching behaviour of transformer * Small fixes after review * Go fmt
14 lines
425 B
SQL
14 lines
425 B
SQL
CREATE TABLE maker.vat_move (
|
|
id SERIAL PRIMARY KEY,
|
|
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
|
|
src TEXT NOT NULL,
|
|
dst TEXT NOT NULL,
|
|
rad NUMERIC NOT NULL,
|
|
tx_idx INTEGER NOT NULL,
|
|
raw_log JSONB,
|
|
UNIQUE (header_id, tx_idx)
|
|
);
|
|
|
|
ALTER TABLE public.checked_headers
|
|
ADD COLUMN vat_move_checked BOOLEAN NOT NULL DEFAULT FALSE;
|