-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
1,119 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
DO $$ BEGIN | ||
CREATE TYPE "public"."ramp_type" AS ENUM('Revolut'); | ||
EXCEPTION | ||
WHEN duplicate_object THEN null; | ||
END $$; | ||
--> statement-breakpoint | ||
CREATE TABLE IF NOT EXISTS "indexer_liquidity_added" ( | ||
"_cursor" bigint, | ||
"created_at" timestamp, | ||
"network" "network_type", | ||
"block_hash" text, | ||
"block_number" bigint, | ||
"block_timestamp" timestamp, | ||
"transaction_hash" text, | ||
"index_in_block" bigint, | ||
"id" text PRIMARY KEY NOT NULL, | ||
"ramp" "ramp_type", | ||
"owner_address" text, | ||
"offchain_id" text, | ||
"amount" text | ||
); | ||
--> statement-breakpoint | ||
CREATE TABLE IF NOT EXISTS "indexer_liquidity_locked" ( | ||
"_cursor" bigint, | ||
"created_at" timestamp, | ||
"network" "network_type", | ||
"block_hash" text, | ||
"block_number" bigint, | ||
"block_timestamp" timestamp, | ||
"transaction_hash" text, | ||
"index_in_block" bigint, | ||
"id" text PRIMARY KEY NOT NULL, | ||
"ramp" "ramp_type", | ||
"owner_address" text, | ||
"offchain_id" text | ||
); | ||
--> statement-breakpoint | ||
CREATE TABLE IF NOT EXISTS "indexer_liquidity_retrieved" ( | ||
"_cursor" bigint, | ||
"created_at" timestamp, | ||
"network" "network_type", | ||
"block_hash" text, | ||
"block_number" bigint, | ||
"block_timestamp" timestamp, | ||
"transaction_hash" text, | ||
"index_in_block" bigint, | ||
"id" text PRIMARY KEY NOT NULL, | ||
"ramp" "ramp_type", | ||
"owner_address" text, | ||
"offchain_id" text, | ||
"amount" text | ||
); | ||
--> statement-breakpoint | ||
CREATE INDEX IF NOT EXISTS "liquidity_added_cursor_idx" ON "indexer_liquidity_added" USING btree ("_cursor");--> statement-breakpoint | ||
CREATE INDEX IF NOT EXISTS "liquidity_added_token_idx" ON "indexer_liquidity_added" USING btree ("ramp");--> statement-breakpoint | ||
CREATE INDEX IF NOT EXISTS "liquidity_added_owner_idx" ON "indexer_liquidity_added" USING btree ("owner_address");--> statement-breakpoint | ||
CREATE INDEX IF NOT EXISTS "liquidity_added_offchain_id_idx" ON "indexer_liquidity_added" USING btree ("offchain_id");--> statement-breakpoint | ||
CREATE INDEX IF NOT EXISTS "liquidity_locked_cursor_idx" ON "indexer_liquidity_locked" USING btree ("_cursor");--> statement-breakpoint | ||
CREATE INDEX IF NOT EXISTS "liquidity_locked_token_idx" ON "indexer_liquidity_locked" USING btree ("ramp");--> statement-breakpoint | ||
CREATE INDEX IF NOT EXISTS "liquidity_locked_owner_idx" ON "indexer_liquidity_locked" USING btree ("owner_address");--> statement-breakpoint | ||
CREATE INDEX IF NOT EXISTS "liquidity_locked_offchain_id_idx" ON "indexer_liquidity_locked" USING btree ("offchain_id");--> statement-breakpoint | ||
CREATE INDEX IF NOT EXISTS "liquidity_retrieved_cursor_idx" ON "indexer_liquidity_retrieved" USING btree ("_cursor");--> statement-breakpoint | ||
CREATE INDEX IF NOT EXISTS "liquidity_retrieved_token_idx" ON "indexer_liquidity_retrieved" USING btree ("ramp");--> statement-breakpoint | ||
CREATE INDEX IF NOT EXISTS "liquidity_retrieved_owner_idx" ON "indexer_liquidity_retrieved" USING btree ("owner_address");--> statement-breakpoint | ||
CREATE INDEX IF NOT EXISTS "liquidity_retrieved_offchain_id_idx" ON "indexer_liquidity_retrieved" USING btree ("offchain_id"); |
Oops, something went wrong.