Skip to content

Commit

Permalink
update transactions table
Browse files Browse the repository at this point in the history
  • Loading branch information
juancwu committed Dec 15, 2024
1 parent 2ff298d commit f8d7269
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions backend/.sqlc/migrations/20241215194302_initial_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,9 @@ CREATE TABLE IF NOT EXISTS transactions (
project_id uuid NOT NULL REFERENCES projects(id),
company_id uuid NOT NULL REFERENCES companies(id),
tx_hash varchar NOT NULL,
block_number bigint NOT NULL,
from_address varchar NOT NULL,
to_address varchar NOT NULL,
value_amount decimal(65,18) NOT NULL,
currency_symbol varchar NOT NULL,
gas_price decimal(65,18),
gas_used bigint,
total_fee decimal(65,18),
status boolean NOT NULL,
nonce bigint NOT NULL,
created_at bigint NOT NULL DEFAULT extract(epoch from now())
value_amount decimal(65,18) NOT NULL
);

CREATE INDEX IF NOT EXISTS idx_users_email ON users(email);
Expand Down

0 comments on commit f8d7269

Please sign in to comment.