-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tx hash and primary key to dune rows
- Loading branch information
1 parent
8f74215
commit 9c58407
Showing
3 changed files
with
90 additions
and
17 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
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
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 |
---|---|---|
@@ -1,11 +1,21 @@ | ||
import { numeric, pgTable, text, timestamp } from "drizzle-orm/pg-core"; | ||
import { createInsertSchema } from "drizzle-zod"; | ||
import { | ||
numeric, | ||
pgTable, | ||
primaryKey, | ||
text, | ||
timestamp, | ||
} from "drizzle-orm/pg-core"; | ||
|
||
export const velords_burns = pgTable("dune_velords_burns", { | ||
source: text("source").notNull(), | ||
amount: numeric("amount").notNull(), | ||
//block_time: timestamp("block_time").notNull(), | ||
//epoch: timestamp("epoch"), | ||
epoch_total_amount: numeric("epoch_total_amount").notNull(), | ||
sender_epoch_total_amount: numeric("sender_epoch_total_amount").notNull(), | ||
}); | ||
export const velords_burns = pgTable( | ||
"dune_velords_burns", | ||
{ | ||
source: text("source").notNull(), | ||
amount: numeric("amount").notNull(), | ||
transaction_hash: text("transaction_hash").notNull(), | ||
//block_time: timestamp("block_time").notNull(), | ||
//epoch: timestamp("epoch"), | ||
epoch_total_amount: numeric("epoch_total_amount").notNull(), | ||
sender_epoch_total_amount: numeric("sender_epoch_total_amount").notNull(), | ||
}, | ||
(t) => [primaryKey({ columns: [t.amount, t.transaction_hash] })], | ||
); |