11 lines
407 B
MySQL
11 lines
407 B
MySQL
|
CREATE TABLE token_allowance (
|
||
|
id SERIAL,
|
||
|
block_id INTEGER NOT NULL,
|
||
|
allowance DECIMAL NOT NULL,
|
||
|
token_address CHARACTER VARYING(66) NOT NULL,
|
||
|
token_holder_address CHARACTER VARYING(66) NOT NULL,
|
||
|
token_spender_address CHARACTER VARYING(66) NOT NULL,
|
||
|
CONSTRAINT blocks_fk FOREIGN KEY (block_id)
|
||
|
REFERENCES blocks (id)
|
||
|
ON DELETE CASCADE
|
||
|
)
|