ipld-eth-server/db/migrations/00042_create_token_supply_table.sql
2019-02-26 00:52:54 -06:00

15 lines
317 B
SQL

-- +goose Up
CREATE TABLE token_supply (
id SERIAL,
block_id INTEGER NOT NULL,
supply DECIMAL NOT NULL,
token_address CHARACTER VARYING(66) NOT NULL,
CONSTRAINT blocks_fk FOREIGN KEY (block_id)
REFERENCES blocks (id)
ON DELETE CASCADE
);
-- +goose Down
DROP TABLE token_supply;